]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm: Fix -Wmissing-prototypes warnings
authorYi Wang <wang.yi59@zte.com.cn>
Thu, 10 Oct 2019 06:37:25 +0000 (14:37 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2019 12:01:14 +0000 (14:01 +0200)
commitcecbaae477715abdc168db7177dc9b0ed14715a6
tree64934a14b5ca95cfedafd1b2ed8af92b18dd81b1
parent81eb52244d946cd31de81af2ef76cd096074db7b
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>
arch/x86/kernel/kvm.c