kvm: vmx: fix some -Wmissing-prototypes warnings
authorYi Wang <wang.yi59@zte.com.cn>
Mon, 21 Jan 2019 07:27:05 +0000 (15:27 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jan 2019 18:11:35 +0000 (19:11 +0100)
commit8997f657001d1ac5042d368a936987c87251c5ec
treee06d9df73522bc8eef22ba912a71c1cd4889a64b
parent619ad846fc3452adaf71ca246c5aa711e2055398
kvm: vmx: fix some -Wmissing-prototypes warnings

We get some warnings when building kernel with W=1:
arch/x86/kvm/vmx/vmx.c:426:5: warning: no previous prototype for ‘kvm_fill_hv_flush_list_func’ [-Wmissing-prototypes]
arch/x86/kvm/vmx/nested.c:58:6: warning: no previous prototype for ‘init_vmcs_shadow_fields’ [-Wmissing-prototypes]

Make them static 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/nested.c
arch/x86/kvm/vmx/vmx.c