[PATCH -next] KVM: x86: Remove unused declaration kvm_mmu_may_ignore_guest_pat()

Yue Haibing posted 1 patch 1 week, 4 days ago
arch/x86/kvm/mmu.h | 2 --
1 file changed, 2 deletions(-)
[PATCH -next] KVM: x86: Remove unused declaration kvm_mmu_may_ignore_guest_pat()
Posted by Yue Haibing 1 week, 4 days ago
Commit 3fee4837ef40 ("KVM: x86: remove shadow_memtype_mask")
removed the functions but leave this declaration.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 arch/x86/kvm/mmu.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h
index 9e5045a60d8b..830f46145692 100644
--- a/arch/x86/kvm/mmu.h
+++ b/arch/x86/kvm/mmu.h
@@ -235,8 +235,6 @@ static inline u8 permission_fault(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,
 	return -(u32)fault & errcode;
 }
 
-bool kvm_mmu_may_ignore_guest_pat(struct kvm *kvm);
-
 int kvm_mmu_post_init_vm(struct kvm *kvm);
 void kvm_mmu_pre_destroy_vm(struct kvm *kvm);
 
-- 
2.34.1
Re: [PATCH -next] KVM: x86: Remove unused declaration kvm_mmu_may_ignore_guest_pat()
Posted by Sean Christopherson 1 week, 3 days ago
On Thu, 20 Nov 2025 20:09:30 +0800, Yue Haibing wrote:
> Commit 3fee4837ef40 ("KVM: x86: remove shadow_memtype_mask")
> removed the functions but leave this declaration.

Applied to kvm-x86 misc, thanks!

[1/1] KVM: x86: Remove unused declaration kvm_mmu_may_ignore_guest_pat()
      https://github.com/kvm-x86/linux/commit/c09816f2afce

--
https://github.com/kvm-x86/linux/tree/next