]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
x86/cpu: Move prototype for get_umwait_control_msr() to a global location
authorBenjamin Thiel <b.thiel@posteo.de>
Thu, 23 Jan 2020 17:29:45 +0000 (18:29 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 17 Feb 2020 18:32:45 +0000 (19:32 +0100)
.. in order to fix a -Wmissing-prototypes warning.

No functional change.

Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: kvm@vger.kernel.org
Link: https://lkml.kernel.org/r/20200123172945.7235-1-b.thiel@posteo.de
arch/x86/include/asm/mwait.h
arch/x86/kernel/cpu/umwait.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h

index 9d5252c9685c6a555215bcf769855bd70fc776d5..b809f117f3f46f57e2986514d742df4033e47ec3 100644 (file)
@@ -23,6 +23,8 @@
 #define MWAITX_MAX_LOOPS               ((u32)-1)
 #define MWAITX_DISABLE_CSTATES         0xf0
 
+u32 get_umwait_control_msr(void);
+
 static inline void __monitor(const void *eax, unsigned long ecx,
                             unsigned long edx)
 {
index c222f283b456089c45dfc14702fea12aeb3e0cd2..300e3fd5ade3e48d79f859d8f2df104c34305069 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/cpu.h>
 
 #include <asm/msr.h>
+#include <asm/mwait.h>
 
 #define UMWAIT_C02_ENABLE      0
 
index 9a6664886f2eff53fa478088dc65d488f7806667..2068cdae3ede84e9fc0b44a9528064e520d0116e 100644 (file)
@@ -41,6 +41,7 @@
 #include <asm/mce.h>
 #include <asm/mmu_context.h>
 #include <asm/mshyperv.h>
+#include <asm/mwait.h>
 #include <asm/spec-ctrl.h>
 #include <asm/virtext.h>
 #include <asm/vmx.h>
index 7f42cf3dcd7002bd41c3702b457bfc507c800978..b4e14ed66ca989ce512a8c98275f8d9dc1615afe 100644 (file)
@@ -14,8 +14,6 @@
 extern const u32 vmx_msr_index[];
 extern u64 host_efer;
 
-extern u32 get_umwait_control_msr(void);
-
 #define MSR_TYPE_R     1
 #define MSR_TYPE_W     2
 #define MSR_TYPE_RW    3