[RFC PATCH] vmx: spp: kvm_spp_level_pages() can be static
From: kbuild test robot
Date: Tue Dec 31 2019 - 15:34:41 EST
Fixes: 5ab8f03b84b6 ("vmx: spp: Set up SPP paging table at vmentry/vmexit")
Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
---
spp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kvm/mmu/spp.c b/arch/x86/kvm/mmu/spp.c
index 9d9edb295394c..3ec4341409674 100644
--- a/arch/x86/kvm/mmu/spp.c
+++ b/arch/x86/kvm/mmu/spp.c
@@ -199,7 +199,7 @@ bool is_spp_spte(struct kvm_mmu_page *sp)
return sp->role.spp;
}
-int kvm_spp_level_pages(gfn_t gfn_lower, gfn_t gfn_upper, int level)
+static int kvm_spp_level_pages(gfn_t gfn_lower, gfn_t gfn_upper, int level)
{
int page_num = KVM_PAGES_PER_HPAGE(level);
gfn_t gfn_max = (gfn_lower & ~(page_num - 1)) + page_num - 1;
@@ -416,7 +416,7 @@ static void kvm_spp_zap_pte(struct kvm *kvm, u64 *spte, int level)
}
}
-bool kvm_spp_flush_rmap(struct kvm *kvm, u64 gfn_min, u64 gfn_max)
+static bool kvm_spp_flush_rmap(struct kvm *kvm, u64 gfn_min, u64 gfn_max)
{
u64 *sptep;
struct rmap_iterator iter;