Message ID | 20231120105528.760306-4-vschneid@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | jump_label: Fix __ro_after_init keys for modules & annotate some keys | expand |
On Mon, Nov 20, 2023, Valentin Schneider wrote: > kvm_async_pf_enabled is only ever enabled in __init kvm_guest_init(), so > mark it as __ro_after_init. > > Signed-off-by: Valentin Schneider <vschneid@redhat.com> > --- Reviewed-by: Sean Christopherson <seanjc@google.com>
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 0ddb3bd0f1aac..146e16f420edf 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -44,7 +44,7 @@ #include <asm/svm.h> #include <asm/e820/api.h> -DEFINE_STATIC_KEY_FALSE(kvm_async_pf_enabled); +DEFINE_STATIC_KEY_FALSE_RO(kvm_async_pf_enabled); static int kvmapf = 1;
kvm_async_pf_enabled is only ever enabled in __init kvm_guest_init(), so mark it as __ro_after_init. Signed-off-by: Valentin Schneider <vschneid@redhat.com> --- arch/x86/kernel/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)