Skip to content

Commit b10c307

Browse files
Benjamin Thielsuryasaimadhu
authored andcommitted
x86/cpu: Move prototype for get_umwait_control_msr() to a global location
.. in order to fix a -Wmissing-prototypes warning. No functional change. Signed-off-by: Benjamin Thiel <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 99ce325 commit b10c307

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

arch/x86/include/asm/mwait.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#define MWAITX_MAX_LOOPS ((u32)-1)
2424
#define MWAITX_DISABLE_CSTATES 0xf0
2525

26+
u32 get_umwait_control_msr(void);
27+
2628
static inline void __monitor(const void *eax, unsigned long ecx,
2729
unsigned long edx)
2830
{

arch/x86/kernel/cpu/umwait.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <linux/cpu.h>
55

66
#include <asm/msr.h>
7+
#include <asm/mwait.h>
78

89
#define UMWAIT_C02_ENABLE 0
910

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include <asm/mce.h>
4242
#include <asm/mmu_context.h>
4343
#include <asm/mshyperv.h>
44+
#include <asm/mwait.h>
4445
#include <asm/spec-ctrl.h>
4546
#include <asm/virtext.h>
4647
#include <asm/vmx.h>

arch/x86/kvm/vmx/vmx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
extern const u32 vmx_msr_index[];
1515
extern u64 host_efer;
1616

17-
extern u32 get_umwait_control_msr(void);
18-
1917
#define MSR_TYPE_R 1
2018
#define MSR_TYPE_W 2
2119
#define MSR_TYPE_RW 3

0 commit comments

Comments
 (0)