Skip to content

Commit d594878

Browse files
ZideChen0lijinxia
authored andcommitted
HV: cleanup for header inclusions.
used https://gitlab.com/esr/deheader to detect and remove unnecessary header file inclusions Signed-off-by: Zide Chen <zide.chen@intel.com>
1 parent 8db85ec commit d594878

File tree

24 files changed

+0
-35
lines changed

24 files changed

+0
-35
lines changed

hypervisor/arch/x86/cpuid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <hv_lib.h>
3333
#include <acrn_common.h>
3434
#include <hv_arch.h>
35-
#include <cpu.h>
3635
#include <hv_debug.h>
3736

3837
static inline struct vcpuid_entry *find_vcpuid_entry(struct vcpu *vcpu,

hypervisor/arch/x86/debug/reboot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: BSD-3-Clause
44
*/
55
#include <acrn_common.h>
6-
#include <io.h>
76

87
int warm_reboot(void)
98
{

hypervisor/arch/x86/ept.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030

3131
#include <hypervisor.h>
3232
#include <hv_lib.h>
33-
#include <acrn_common.h>
3433
#include <acrn_hv_defs.h>
3534
#include <hv_arch.h>
36-
#include <hypercall.h>
3735
#include <hv_debug.h>
3836

3937
#include "guest/instr_emul_wrapper.h"

hypervisor/arch/x86/gdt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
*/
3030

3131
#include <hv_lib.h>
32-
#include <cpu.h>
3332
#include <gdt.h>
3433

3534
DEFINE_CPU_DATA(struct tss_64, tss);

hypervisor/arch/x86/guest/guest.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@
3232
#include <hv_lib.h>
3333
#include <acrn_common.h>
3434
#include <hv_arch.h>
35-
#include <bsp_cfg.h>
3635
#include <bsp_extern.h>
3736
#include <acrn_hv_defs.h>
3837
#include <hv_debug.h>
3938
#include <multiboot.h>
40-
#include <zeropage.h>
4139

4240
#define ACRN_DBG_GUEST 6
4341

hypervisor/arch/x86/guest/instr_emul_wrapper.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <hv_lib.h>
3333
#include <acrn_common.h>
3434
#include <hv_arch.h>
35-
#include <bsp_extern.h>
3635
#include <hv_debug.h>
3736

3837
#include "instr_emul_wrapper.h"

hypervisor/arch/x86/guest/ucode.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include <hv_lib.h>
3232
#include <acrn_common.h>
3333
#include <hv_arch.h>
34-
#include <hv_debug.h>
3534
#include <ucode.h>
3635

3736
uint64_t get_microcode_version(void)

hypervisor/arch/x86/guest/vlapic.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <acrn_common.h>
3535
#include <hv_arch.h>
3636
#include <acrn_hv_defs.h>
37-
#include <bsp_extern.h>
3837
#include <hv_debug.h>
3938

4039
#include "instr_emul_wrapper.h"

hypervisor/arch/x86/intr_lapic.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <hv_lib.h>
3333
#include <acrn_common.h>
3434
#include <hv_arch.h>
35-
#include <bsp_extern.h>
3635
#include <hv_debug.h>
3736

3837
/* Rate range 1 to 1000 or 1uSec to 1mSec */

hypervisor/arch/x86/io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <acrn_common.h>
3434
#include <hv_arch.h>
3535
#include <hv_debug.h>
36-
#include <hypercall.h>
3736

3837
int dm_emulate_pio_post(struct vcpu *vcpu)
3938
{

0 commit comments

Comments
 (0)