x86: kvm: mmu: make kvm_mmu_clear_all_pte_masks static

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/858ac87fc2ff7be8fedfa8dd2ba47627068c2eae
Commit:     858ac87fc2ff7be8fedfa8dd2ba47627068c2eae
Parent:     fb6d4d340e0532032c808a9933eaaa7b8de435ab
Refname:    refs/heads/master
Author:     Gimcuan Hui <[email protected]>
AuthorDate: Fri Nov 3 18:52:46 2017 +0000
Committer:  Paolo Bonzini <[email protected]>
CommitDate: Thu Dec 14 09:26:41 2017 +0100

    x86: kvm: mmu: make kvm_mmu_clear_all_pte_masks static
    
    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 <[email protected]>
    Reviewed-by: David Hildenbrand <[email protected]>
    Signed-off-by: Paolo Bonzini <[email protected]>
---
 arch/x86/kvm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index c4deb1f34faa..89da688784fa 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.