Commit bf68a7d9 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Borislav Petkov

x86/fpu: Mark init_fpstate __ro_after_init

Nothing has to write into that state after init.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121456.992342060@linutronix.de
parent 72a6c08c
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Represents the initial FPU state. It's mostly (but not completely) zeroes, * Represents the initial FPU state. It's mostly (but not completely) zeroes,
* depending on the FPU hardware format: * 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 * Track whether the kernel is using the FPU state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment