[RFC PATCH] mmu: spp: is_spp_protected() can be static
From: kbuild test robot
Date: Tue Dec 31 2019 - 17:27:40 EST
Fixes: aacd4e33a5dd ("mmu: spp: Enable Lazy mode SPP protection")
Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
---
spp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/mmu/spp.c b/arch/x86/kvm/mmu/spp.c
index a5b881f438b1f..6b0317edf0b08 100644
--- a/arch/x86/kvm/mmu/spp.c
+++ b/arch/x86/kvm/mmu/spp.c
@@ -571,7 +571,7 @@ inline u64 construct_spptp(unsigned long root_hpa)
}
EXPORT_SYMBOL_GPL(construct_spptp);
-bool is_spp_protected(struct kvm_memory_slot *slot, gfn_t gfn, int level)
+static bool is_spp_protected(struct kvm_memory_slot *slot, gfn_t gfn, int level)
{
int page_num = KVM_PAGES_PER_HPAGE(level);
u32 *access;