]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
KVM: x86/mmu: Move the misplaced export of kvm_zap_gfn_range()
authorKai Huang <kai.huang@intel.com>
Tue, 21 Oct 2025 11:43:45 +0000 (00:43 +1300)
committerSean Christopherson <seanjc@google.com>
Tue, 4 Nov 2025 17:51:06 +0000 (09:51 -0800)
Currently, the export of kvm_zap_gfn_range() is misplaced, i.e., it's
not placed right after the kvm_zap_gfn_range() function body but after
kvm_mmu_zap_collapsible_spte().  Move it to the right place.

No functional change intended.

Signed-off-by: Kai Huang <kai.huang@intel.com>
Link: https://patch.msgid.link/20251021114345.159372-1-kai.huang@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c

index 18d69d48bc55ac09bb2687e9a62ab14534742e08..329cf3508f467ff869120afa7b873cee50d585f9 100644 (file)
@@ -6863,6 +6863,7 @@ void kvm_zap_gfn_range(struct kvm *kvm, gfn_t gfn_start, gfn_t gfn_end)
 
        write_unlock(&kvm->mmu_lock);
 }
+EXPORT_SYMBOL_FOR_KVM_INTERNAL(kvm_zap_gfn_range);
 
 static bool slot_rmap_write_protect(struct kvm *kvm,
                                    struct kvm_rmap_head *rmap_head,
@@ -7204,7 +7205,6 @@ restart:
 
        return need_tlb_flush;
 }
-EXPORT_SYMBOL_FOR_KVM_INTERNAL(kvm_zap_gfn_range);
 
 static void kvm_rmap_zap_collapsible_sptes(struct kvm *kvm,
                                           const struct kvm_memory_slot *slot)