diff options
author | 2023-02-21 23:33:15 -0800 | |
---|---|---|
committer | 2023-02-22 13:32:07 -0500 | |
commit | 45dd9bc75d9adc9483f0c7d662ba6e73ed698a0b (patch) | |
tree | 42ea28586cc7dc9ac0c16f5cd2aa4e17d9fb0610 /arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | |
parent | Merge tag 'kvm-x86-apic-6.3' of https://github.com/kvm-x86/linux into HEAD (diff) | |
download | linux-45dd9bc75d9adc9483f0c7d662ba6e73ed698a0b.tar.gz linux-45dd9bc75d9adc9483f0c7d662ba6e73ed698a0b.tar.bz2 linux-45dd9bc75d9adc9483f0c7d662ba6e73ed698a0b.zip |
KVM: SVM: hyper-v: placate modpost section mismatch error
modpost reports section mismatch errors/warnings:
WARNING: modpost: vmlinux.o: section mismatch in reference: svm_hv_hardware_setup (section: .text) -> (unknown) (section: .init.data)
WARNING: modpost: vmlinux.o: section mismatch in reference: svm_hv_hardware_setup (section: .text) -> (unknown) (section: .init.data)
WARNING: modpost: vmlinux.o: section mismatch in reference: svm_hv_hardware_setup (section: .text) -> (unknown) (section: .init.data)
This "(unknown) (section: .init.data)" all refer to svm_x86_ops.
Tag svm_hv_hardware_setup() with __init to fix a modpost warning as the
non-stub implementation accesses __initdata (svm_x86_ops), i.e. would
generate a use-after-free if svm_hv_hardware_setup() were actually invoked
post-init. The helper is only called from svm_hardware_setup(), which is
also __init, i.e. lack of __init is benign other than the modpost warning.
Fixes: 1e0c7d40758b ("KVM: SVM: hyper-v: Remote TLB flush for SVM")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vineeth Pillai <viremana@linux.microsoft.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Cc: stable@vger.kernel.org
Reviewed-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20230222073315.9081-1-rdunlap@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts')
0 files changed, 0 insertions, 0 deletions