]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hygon: do not include asm/hvm/support.h when not used
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 6 Feb 2023 15:04:09 +0000 (16:04 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 6 Feb 2023 15:04:09 +0000 (16:04 +0100)
Since none of the declarations and macro definitions in asm/hvm/support.h is
referred in x86/cpu/hygon.c, remove the unnecessary include.

To resolve the subsequent build error for implicit declaration of wrmsrl()
and rdmsrl() triggered in asm/spec_ctrl.h, replace asm/msr-index.h with
asm/msr.h in asm/spec_ctrl.h's included headers.

No functional change intended.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/hygon.c
xen/arch/x86/include/asm/spec_ctrl.h

index 361eb6fd411b2a35a11aed7d4f44d93791b2a4fe..42029f214563fac13f4079079d5b7c9cd722abd4 100644 (file)
@@ -1,6 +1,5 @@
 #include <xen/init.h>
 #include <asm/processor.h>
-#include <asm/hvm/support.h>
 #include <asm/spec_ctrl.h>
 
 #include "cpu.h"
index 6a77c39378448bbf775a5db87fcd0d71f095d780..e928596450f7ba65f6af9c005dbb1a1609dd6c95 100644 (file)
@@ -60,7 +60,7 @@
 
 #include <asm/alternative.h>
 #include <asm/current.h>
-#include <asm/msr-index.h>
+#include <asm/msr.h>
 
 void init_speculation_mitigations(void);
 void spec_ctrl_init_domain(struct domain *d);