Skip to contentSkip to conversation

KVM: x86: hyper-v: Remove unused inline function kvm_hv_free_pa_page()

PATCH Applied Yue Haibing 3 participants 3 messages Aug 3, 2024 – Aug 13, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: x86: hyper-v: Remove unused inline function kvm_hv_free_pa_page()

There is no caller in tree since introduction in commit b4f69df0f65e ("KVM:
x86: Make Hyper-V emulation optional")

---
 arch/x86/kvm/hyperv.h | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kvm/hyperv.h +0 -1
index 923e64903da9..913bfc96959c 100644
@@ -286,7 +286,6 @@ static inline int kvm_hv_hypercall(struct kvm_vcpu *vcpu)
 	return HV_STATUS_ACCESS_DENIED;
 }
 static inline void kvm_hv_vcpu_purge_flush_tlb(struct kvm_vcpu *vcpu) {}
-static inline void kvm_hv_free_pa_page(struct kvm *kvm) {}
 static inline bool kvm_hv_synic_has_vector(struct kvm_vcpu *vcpu, int vector)
 {
 	return false;
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Yue Haibing

There is no caller in tree since introduction in commit b4f69df0f65e ("KVM:
x86: Make Hyper-V emulation optional")

Yea, I tried some history digging but came out empty handed and I have to admit I have no idea how and when I added this stub. Thanks for the cleanup!

Quoted 18 lines
---
 arch/x86/kvm/hyperv.h | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kvm/hyperv.h +0 -1
index 923e64903da9..913bfc96959c 100644
@@ -286,7 +286,6 @@ static inline int kvm_hv_hypercall(struct kvm_vcpu *vcpu)
 	return HV_STATUS_ACCESS_DENIED;
 }
 static inline void kvm_hv_vcpu_purge_flush_tlb(struct kvm_vcpu *vcpu) {}
-static inline void kvm_hv_free_pa_page(struct kvm *kvm) {}
 static inline bool kvm_hv_synic_has_vector(struct kvm_vcpu *vcpu, int vector)
 {
 	return false;
Signature · 1 line
Vitaly