summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu/mmu_audit.c
diff options
context:
space:
mode:
authorJinrong Liang <cloudliang@tencent.com>2022-01-25 17:58:55 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-02-10 13:47:11 -0500
commit0758d6a7c333d8639d3bbf8fcb85b3225d7c99c1 (patch)
tree30625325b2f1d453fb6e84cbb9688e35a1fdc5b1 /arch/x86/kvm/mmu/mmu_audit.c
parentad6d6b949e1d5a1475c4fc8400bd38aabea4f83c (diff)
downloadlinux-0758d6a7c333d8639d3bbf8fcb85b3225d7c99c1.tar.bz2
KVM: x86/mmu_audit: Remove unused "level" of audit_spte_after_sync()
The "int level" parameter of audit_spte_after_sync() is not used, so remove it. No functional change intended. Signed-off-by: Jinrong Liang <cloudliang@tencent.com> Message-Id: <20220125095909.38122-6-cloudliang@tencent.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu/mmu_audit.c')
-rw-r--r--arch/x86/kvm/mmu/mmu_audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu/mmu_audit.c b/arch/x86/kvm/mmu/mmu_audit.c
index 9e7dcf999f08..f31fdb874f1f 100644
--- a/arch/x86/kvm/mmu/mmu_audit.c
+++ b/arch/x86/kvm/mmu/mmu_audit.c
@@ -163,7 +163,7 @@ static void audit_sptes_have_rmaps(struct kvm_vcpu *vcpu, u64 *sptep, int level)
inspect_spte_has_rmap(vcpu->kvm, sptep);
}
-static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep, int level)
+static void audit_spte_after_sync(struct kvm_vcpu *vcpu, u64 *sptep)
{
struct kvm_mmu_page *sp = sptep_to_sp(sptep);
@@ -225,7 +225,7 @@ static void audit_spte(struct kvm_vcpu *vcpu, u64 *sptep, int level)
{
audit_sptes_have_rmaps(vcpu, sptep, level);
audit_mappings(vcpu, sptep, level);
- audit_spte_after_sync(vcpu, sptep, level);
+ audit_spte_after_sync(vcpu, sptep);
}
static void audit_vcpu_spte(struct kvm_vcpu *vcpu)