Skip to contentSkip to conversation

x86/kvm: Fix -Wmissing-prototypes warnings

PATCH Paolo Bonzini 1 participant 1 message Oct 25, 2019 1 message not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Paolo Bonzini

author maintainer Applied
#1 lore raw

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.

---
 arch/x86/kernel/kvm.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/kvm.c +0 -0
index e820568..32ef1ee 100644

arch/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