From: Yi Wang Date: Thu, 10 Oct 2019 06:37:25 +0000 (+0800) Subject: x86/kvm: Fix -Wmissing-prototypes warnings X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=19308a412ec52c0de92d296842be237778753d9b;p=linux.git 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 Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index e820568ed4d5c..32ef1ee733b77 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -33,6 +33,7 @@ #include #include #include +#include static int kvmapf = 1;