From: Thomas Gleixner Date: Wed, 23 Jun 2021 12:02:24 +0000 (+0200) Subject: x86/fpu: Mark init_fpstate __ro_after_init X-Git-Tag: v5.14-rc1~52^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf68a7d98922e1665019b8bf0c4791500837c857;p=thirdparty%2Fkernel%2Flinux.git x86/fpu: Mark init_fpstate __ro_after_init Nothing has to write into that state after init. Signed-off-by: Thomas Gleixner Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20210623121456.992342060@linutronix.de --- diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c index 5295cbafc92ed..7ada7bd03a327 100644 --- a/arch/x86/kernel/fpu/core.c +++ b/arch/x86/kernel/fpu/core.c @@ -23,7 +23,7 @@ * Represents the initial FPU state. It's mostly (but not completely) zeroes, * depending on the FPU hardware format: */ -union fpregs_state init_fpstate __read_mostly; +union fpregs_state init_fpstate __ro_after_init; /* * Track whether the kernel is using the FPU state