aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx/vmx.c
diff options
context:
space:
mode:
authorYi Wang <wang.yi59@zte.com.cn>2019-01-21 15:27:05 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-01-25 19:11:35 +0100
commit8997f657001d1ac5042d368a936987c87251c5ec (patch)
treee06d9df73522bc8eef22ba912a71c1cd4889a64b /arch/x86/kvm/vmx/vmx.c
parentKVM: nSVM: clear events pending from svm_complete_interrupts() when exiting to L1 (diff)
downloadlinux-dev-8997f657001d1ac5042d368a936987c87251c5ec.tar.xz
linux-dev-8997f657001d1ac5042d368a936987c87251c5ec.zip
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>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/vmx/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index 0762fcab8fc9..8be2abbdf63f 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -423,7 +423,7 @@ static void check_ept_pointer_match(struct kvm *kvm)
to_kvm_vmx(kvm)->ept_pointers_match = EPT_POINTERS_MATCH;
}
-int kvm_fill_hv_flush_list_func(struct hv_guest_mapping_flush_list *flush,
+static int kvm_fill_hv_flush_list_func(struct hv_guest_mapping_flush_list *flush,
void *data)
{
struct kvm_tlb_range *range = data;