]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: vmx: Fix -Wmissing-prototypes warnings
authorYi Wang <wang.yi59@zte.com.cn>
Mon, 20 May 2019 04:27:47 +0000 (12:27 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:27:08 +0000 (21:27 +0200)
commit775142f26785d1a06befdef46761f00cbd32aad1
treeb8fc907bc48c612e0e117d8e81d4fd6b80da3f05
parentb5feaecd6d718ab3fad06917eec02133d2250bd0
kvm: vmx: Fix -Wmissing-prototypes warnings

We get a warning when build kernel W=1:
arch/x86/kvm/vmx/vmx.c:6365:6: warning: no previous prototype for ‘vmx_update_host_rsp’ [-Wmissing-prototypes]
 void vmx_update_host_rsp(struct vcpu_vmx *vmx, unsigned long host_rsp)

Add the missing declaration to fix this.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.h