]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: SVM: Make avic_ga_log_notifier() local to avic.c
authorSean Christopherson <seanjc@google.com>
Thu, 16 Oct 2025 19:06:43 +0000 (12:06 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 4 Nov 2025 17:14:28 +0000 (09:14 -0800)
Make amd_iommu_register_ga_log_notifier() a local symbol now that it's
defined and used purely within avic.c.

No functional change intended.

Fixes: 4bdec12aa8d6 ("KVM: SVM: Detect X2APIC virtualization (x2AVIC) support")
Link: https://patch.msgid.link/20251016190643.80529-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.h

index 3ab74f2bd5846c81f61762c1b4e8e498f1a6e516..89864fee6e839c73c4f9c1896f58b34d65104af2 100644 (file)
@@ -216,7 +216,7 @@ static void avic_deactivate_vmcb(struct vcpu_svm *svm)
  * This function is called from IOMMU driver to notify
  * SVM to schedule in a particular vCPU of a particular VM.
  */
-int avic_ga_log_notifier(u32 ga_tag)
+static int avic_ga_log_notifier(u32 ga_tag)
 {
        unsigned long flags;
        struct kvm_svm *kvm_svm;
index b0fe40c217280f63d4b345177e2d7055a58b6062..8c36ee0d67ef09336a0fda038756a6b40d4009a1 100644 (file)
@@ -806,7 +806,6 @@ extern struct kvm_x86_nested_ops svm_nested_ops;
 
 bool __init avic_hardware_setup(void);
 void avic_hardware_unsetup(void);
-int avic_ga_log_notifier(u32 ga_tag);
 void avic_vm_destroy(struct kvm *kvm);
 int avic_vm_init(struct kvm *kvm);
 void avic_init_vmcb(struct vcpu_svm *svm, struct vmcb *vmcb);