From a37bf6ff1284e6897a6f51130f12905ec1351705 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 17 Mar 2020 16:12:26 +0100 Subject: [PATCH] x86/HVM: reduce vcpu.h include dependencies Drop #include-s not needed by the header itself. Put the ones needed into whichever other files actually need them. Signed-off-by: Jan Beulich Reviewed-by: Paul Durrant Acked-by: Andrew Cooper --- xen/arch/x86/cpuid.c | 1 + xen/arch/x86/hvm/hvm.c | 1 + xen/arch/x86/hvm/hypercall.c | 1 + xen/arch/x86/hvm/viridian/private.h | 1 + xen/arch/x86/msr.c | 1 + xen/include/asm-x86/hvm/vcpu.h | 2 -- 6 files changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/cpuid.c b/xen/arch/x86/cpuid.c index 6e01394fd2..4b734284a4 100644 --- a/xen/arch/x86/cpuid.c +++ b/xen/arch/x86/cpuid.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index a2abad9f76..a3d115b650 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -65,6 +65,7 @@ #include #include #include +#include #include #include #include diff --git a/xen/arch/x86/hvm/hypercall.c b/xen/arch/x86/hvm/hypercall.c index 782197ff8a..cedc7f2ac5 100644 --- a/xen/arch/x86/hvm/hypercall.c +++ b/xen/arch/x86/hvm/hypercall.c @@ -23,6 +23,7 @@ #include #include +#include #include #include diff --git a/xen/arch/x86/hvm/viridian/private.h b/xen/arch/x86/hvm/viridian/private.h index d2fe3c2ea1..1bf65c761c 100644 --- a/xen/arch/x86/hvm/viridian/private.h +++ b/xen/arch/x86/hvm/viridian/private.h @@ -4,6 +4,7 @@ #define X86_HVM_VIRIDIAN_PRIVATE_H #include +#include #include int viridian_synic_wrmsr(struct vcpu *v, uint32_t idx, uint64_t val); diff --git a/xen/arch/x86/msr.c b/xen/arch/x86/msr.c index 385ad6d169..b4a1ab0fa6 100644 --- a/xen/arch/x86/msr.c +++ b/xen/arch/x86/msr.c @@ -25,6 +25,7 @@ #include #include +#include #include #include diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 8b84941111..747bc462d3 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -20,9 +20,7 @@ #define __ASM_X86_HVM_VCPU_H__ #include -#include #include -#include #include #include #include -- 2.30.2