From ea131e2ed329e90487ec258ae195e5e95784e8ea Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Fri, 2 Aug 2019 13:35:14 +0100 Subject: [PATCH] x86/asm: Include msr-index.h rather than msr.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is nothing interesting for assembly code in msr.h. Include msr-index.h instead, and drop the __ASSEMBLY__ guards in msr.h. No functional change. Signed-off-by: Andrew Cooper Reviewed-by: Roger Pau Monné Acked-by: Jan Beulich --- xen/arch/x86/boot/head.S | 2 +- xen/arch/x86/x86_64/kexec_reloc.S | 2 +- xen/include/asm-x86/msr.h | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S index d78bed394a..ab2d52a79d 100644 --- a/xen/arch/x86/boot/head.S +++ b/xen/arch/x86/boot/head.S @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include diff --git a/xen/arch/x86/x86_64/kexec_reloc.S b/xen/arch/x86/x86_64/kexec_reloc.S index 4d527dbfce..5bf61d5c2d 100644 --- a/xen/arch/x86/x86_64/kexec_reloc.S +++ b/xen/arch/x86/x86_64/kexec_reloc.S @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include diff --git a/xen/include/asm-x86/msr.h b/xen/include/asm-x86/msr.h index 3cbbc65e02..bca41a3670 100644 --- a/xen/include/asm-x86/msr.h +++ b/xen/include/asm-x86/msr.h @@ -3,8 +3,6 @@ #include "msr-index.h" -#ifndef __ASSEMBLY__ - #include #include #include @@ -336,6 +334,4 @@ int init_vcpu_msr_policy(struct vcpu *v); int guest_rdmsr(struct vcpu *v, uint32_t msr, uint64_t *val); int guest_wrmsr(struct vcpu *v, uint32_t msr, uint64_t val); -#endif /* !__ASSEMBLY__ */ - #endif /* __ASM_MSR_H */ -- 2.30.2