]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
KVM: x86: Drop pointless exports of kvm_arch_xxx() hooks
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 00:33:02 +0000 (17:33 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Sep 2025 17:40:02 +0000 (13:40 -0400)
Drop the exporting of several kvm_arch_xxx() hooks that are only called
from arch-neutral code, i.e. that are only called from kvm.ko.

Link: https://lore.kernel.org/r/20250919003303.1355064-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c

index 5542b8d83602e1d687054efc76da24c6175f7edc..a618a30423a7d1e56566f2eabb41ec220c9c2ada 100644 (file)
@@ -13922,14 +13922,12 @@ void kvm_arch_register_noncoherent_dma(struct kvm *kvm)
        if (atomic_inc_return(&kvm->arch.noncoherent_dma_count) == 1)
                kvm_noncoherent_dma_assignment_start_or_stop(kvm);
 }
-EXPORT_SYMBOL_GPL(kvm_arch_register_noncoherent_dma);
 
 void kvm_arch_unregister_noncoherent_dma(struct kvm *kvm)
 {
        if (!atomic_dec_return(&kvm->arch.noncoherent_dma_count))
                kvm_noncoherent_dma_assignment_start_or_stop(kvm);
 }
-EXPORT_SYMBOL_GPL(kvm_arch_unregister_noncoherent_dma);
 
 bool kvm_arch_has_noncoherent_dma(struct kvm *kvm)
 {
@@ -13941,7 +13939,6 @@ bool kvm_arch_no_poll(struct kvm_vcpu *vcpu)
 {
        return (vcpu->arch.msr_kvm_poll_control & 1) == 0;
 }
-EXPORT_SYMBOL_GPL(kvm_arch_no_poll);
 
 #ifdef CONFIG_KVM_GUEST_MEMFD
 /*