Skip to content

Commit e38ff18

Browse files
mingqiangchiacrnsi
authored andcommitted
hv:cleanup header files for release folder
cleanup release folder, only include some necessary header files,doesn't include hypervisor.h Tracked-On: #1842 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> modified: release/console.c modified: release/dump.c modified: release/hypercall.c modified: release/logmsg.c modified: release/npk_log.c modified: release/profiling.c modified: release/trace.c modified: release/vuart.c
1 parent 33ecdd7 commit e38ff18

File tree

8 files changed

+15
-8
lines changed

8 files changed

+15
-8
lines changed

hypervisor/release/console.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
8+
#include <pci.h>
89

910
size_t console_write(__unused const char *str, __unused size_t len)
1011
{

hypervisor/release/dump.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
8+
#include <irq.h>
89

910
void dump_intr_excp_frame(__unused const struct intr_excp_ctx *ctx) {}
1011
void dump_exception(__unused struct intr_excp_ctx *ctx, __unused uint16_t pcpu_id) {}

hypervisor/release/hypercall.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
8+
#include <errno.h>
9+
#include <vm.h>
810

911
int32_t hcall_debug(__unused struct acrn_vm *vm, __unused uint64_t param1, __unused uint64_t param2,
1012
__unused uint64_t hypcall_id)

hypervisor/release/logmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
88

99
void init_logmsg(__unused uint32_t flags) {}
1010
void do_logmsg(__unused uint32_t severity, __unused const char *fmt, ...) {}

hypervisor/release/npk_log.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
8+
#include <acrn_hv_defs.h>
89

910
void npk_log_setup(__unused struct hv_npk_log_param *param) {}
1011
void npk_log_write(__unused const char *buf, __unused size_t len) {}

hypervisor/release/profiling.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
8+
#include <vcpu.h>
89

910
void profiling_vmenter_handler(__unused struct acrn_vcpu *vcpu) {}
1011
void profiling_pre_vmexit_handler(__unused struct acrn_vcpu *vcpu) {}

hypervisor/release/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
88

99
void TRACE_2L(__unused uint32_t evid, __unused uint64_t e, __unused uint64_t f) {}
1010

hypervisor/release/vuart.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#include <hypervisor.h>
7+
#include <types.h>
8+
#include <vm.h>
89

910
void vuart_init(__unused struct acrn_vm *vm) {}
1011

0 commit comments

Comments
 (0)