Skip to content

Commit 4ca077f

Browse files
Yue Haibingsean-jc
authored andcommitted
KVM: x86: Remove some unused declarations
Commit 238adc7 ("KVM: Cleanup LAPIC interface") removed kvm_lapic_get_base() but leave declaration. And other two declarations were never implenmented since introduction. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20240830022537.2403873-1-yuehaibing@huawei.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 3f6821a commit 4ca077f

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

arch/x86/kvm/lapic.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ u64 kvm_lapic_get_cr8(struct kvm_vcpu *vcpu);
9696
void kvm_lapic_set_tpr(struct kvm_vcpu *vcpu, unsigned long cr8);
9797
void kvm_lapic_set_eoi(struct kvm_vcpu *vcpu);
9898
void kvm_lapic_set_base(struct kvm_vcpu *vcpu, u64 value);
99-
u64 kvm_lapic_get_base(struct kvm_vcpu *vcpu);
10099
void kvm_recalculate_apic_map(struct kvm *kvm);
101100
void kvm_apic_set_version(struct kvm_vcpu *vcpu);
102101
void kvm_apic_after_set_mcg_cap(struct kvm_vcpu *vcpu);

arch/x86/kvm/mmu.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ static inline u8 permission_fault(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,
223223

224224
bool kvm_mmu_may_ignore_guest_pat(void);
225225

226-
int kvm_arch_write_log_dirty(struct kvm_vcpu *vcpu);
227-
228226
int kvm_mmu_post_init_vm(struct kvm *kvm);
229227
void kvm_mmu_pre_destroy_vm(struct kvm *kvm);
230228

arch/x86/kvm/mmu/mmu_internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ int kvm_mmu_max_mapping_level(struct kvm *kvm,
349349
void kvm_mmu_hugepage_adjust(struct kvm_vcpu *vcpu, struct kvm_page_fault *fault);
350350
void disallowed_hugepage_adjust(struct kvm_page_fault *fault, u64 spte, int cur_level);
351351

352-
void *mmu_memory_cache_alloc(struct kvm_mmu_memory_cache *mc);
353-
354352
void track_possible_nx_huge_page(struct kvm *kvm, struct kvm_mmu_page *sp);
355353
void untrack_possible_nx_huge_page(struct kvm *kvm, struct kvm_mmu_page *sp);
356354

0 commit comments

Comments
 (0)