]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
x86: kvm: mmu: make kvm_mmu_clear_all_pte_masks static
authorGimcuan Hui <gimcuan@gmail.com>
Fri, 3 Nov 2017 18:52:46 +0000 (18:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Dec 2017 08:26:41 +0000 (09:26 +0100)
The kvm_mmu_clear_all_pte_masks interface is only used by kvm_mmu_module_init
locally, and does not need to be called by other module, make it static.

This patch cleans up sparse warning:
symbol 'kvm_mmu_clear_all_pte_masks' was not declared. Should it be static?

Signed-off-by: Gimcuan Hui <gimcuan@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c

index c4deb1f34faa6ce7ffe6bcaaebddc3e87b2a9a69..89da688784fa72bb0b669d4db506773ececcacf4 100644 (file)
@@ -381,7 +381,7 @@ void kvm_mmu_set_mask_ptes(u64 user_mask, u64 accessed_mask,
 }
 EXPORT_SYMBOL_GPL(kvm_mmu_set_mask_ptes);
 
-void kvm_mmu_clear_all_pte_masks(void)
+static void kvm_mmu_clear_all_pte_masks(void)
 {
        shadow_user_mask = 0;
        shadow_accessed_mask = 0;