x86/kvm: Fix -Wmissing-prototypes warnings
A message that is not in the archive (sent off-list or not yet received): [email protected]
Queued, thanks. It may not appear on git.kernel.org until after KVM Forum though.
Paolo
Quoted 30 lines · On 25/10/19 03:58, [email protected] wrote:
Gentle Ping :)
Quoted 16 lines
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 <[email protected]>--- arch/x86/kernel/kvm.c | 1 + 1 file changed, 1 insertion(+)arch/x86/kernel/kvm.c +0
-0arch/x86/kernel/kvm.c line 38
Quoted 6 lines
arch/x86/kernel/kvm.c +1
-0@@ -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 ;---
Best wishes
Yi Wang