From: Sean Christopherson Date: Tue, 10 Jun 2025 22:57:09 +0000 (-0700) Subject: KVM: SVM: Tag MSR bitmap initialization helpers with __init X-Git-Tag: io_uring-6.17-20250815~113^2~10^2~42 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f886515f9ba23a4cc65e1bc7afeb5177e92c8936;p=linux-block.git KVM: SVM: Tag MSR bitmap initialization helpers with __init Tag init_msrpm_offsets() and add_msr_offset() with __init, as they're used only during hardware setup to map potential passthrough MSRs to offsets in the bitmap. Reviewed-by: Chao Gao Link: https://lore.kernel.org/r/20250610225737.156318-5-seanjc@google.com Signed-off-by: Sean Christopherson --- diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 29c90b90bc32..127b54c1bbaf 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -939,7 +939,7 @@ static void svm_msr_filter_changed(struct kvm_vcpu *vcpu) } } -static int add_msr_offset(u32 offset) +static __init int add_msr_offset(u32 offset) { int i; @@ -962,7 +962,7 @@ static int add_msr_offset(u32 offset) return -ENOSPC; } -static int init_msrpm_offsets(void) +static __init int init_msrpm_offsets(void) { int i;