]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30ac4b8e0d9b3e8ab361198236961f4bdd61b713
treee06d9df73522bc8eef22ba912a71c1cd4889a64b
parent16fe5954a65e9f3bd1fcc643c364ecf6918f2cce
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