From: Sean Christopherson Date: Sat, 21 Mar 2020 20:26:02 +0000 (-0700) Subject: KVM: VMX: Annotate vmx_x86_ops as __initdata X-Git-Tag: Ubuntu-5.13.0-19.19~6350^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e286ac0e38cbe187fbbc72d7e9da503f5ed26cc8;p=mirror_ubuntu-jammy-kernel.git KVM: VMX: Annotate vmx_x86_ops as __initdata Tag vmx_x86_ops with __initdata now the the struct is copied by value to a common x86 instance of kvm_x86_ops as part of kvm_init(). Signed-off-by: Sean Christopherson Message-Id: <20200321202603.19355-9-sean.j.christopherson@intel.com> Reviewed-by: Vitaly Kuznetsov Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index f23c2cfb99a6..4f844257a72d 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -7662,7 +7662,7 @@ static bool vmx_check_apicv_inhibit_reasons(ulong bit) return supported & BIT(bit); } -static struct kvm_x86_ops vmx_x86_ops __ro_after_init = { +static struct kvm_x86_ops vmx_x86_ops __initdata = { .hardware_unsetup = hardware_unsetup, .hardware_enable = hardware_enable,