aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/kvm.c
diff options
context:
space:
mode:
authorYi Wang <wang.yi59@zte.com.cn>2019-10-10 14:37:25 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-10-25 14:01:14 +0200
commit19308a412ec52c0de92d296842be237778753d9b (patch)
tree64934a14b5ca95cfedafd1b2ed8af92b18dd81b1 /arch/x86/kernel/kvm.c
parentKVM: Add separate helper for putting borrowed reference to kvm (diff)
downloadlinux-dev-19308a412ec52c0de92d296842be237778753d9b.tar.xz
linux-dev-19308a412ec52c0de92d296842be237778753d9b.zip
x86/kvm: Fix -Wmissing-prototypes warnings
We get two warning when build kernel with W=1: arch/x86/kernel/kvm.c:872:6: warning: no previous prototype for ‘arch_haltpoll_enable’ [-Wmissing-prototypes] arch/x86/kernel/kvm.c:885:6: warning: no previous prototype for ‘arch_haltpoll_disable’ [-Wmissing-prototypes] Including the missing head file can fix this. Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kernel/kvm.c')
-rw-r--r--arch/x86/kernel/kvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
index e820568ed4d5..32ef1ee733b7 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -33,6 +33,7 @@
#include <asm/apicdef.h>
#include <asm/hypervisor.h>
#include <asm/tlb.h>
+#include <asm/cpuidle_haltpoll.h>
static int kvmapf = 1;