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 <chao.gao@xxxxxxxxx> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> --- arch/x86/kvm/svm/svm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index f70211780880..0c71efc99208 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -945,7 +945,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; @@ -968,7 +968,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; -- 2.50.0.rc0.642.g800a2b2222-goog