Skip to content

Commit bf68a7d

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
x86/fpu: Mark init_fpstate __ro_after_init
Nothing has to write into that state after init. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 72a6c08 commit bf68a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/fpu/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Represents the initial FPU state. It's mostly (but not completely) zeroes,
2424
* depending on the FPU hardware format:
2525
*/
26-
union fpregs_state init_fpstate __read_mostly;
26+
union fpregs_state init_fpstate __ro_after_init;
2727

2828
/*
2929
* Track whether the kernel is using the FPU state

0 commit comments

Comments
 (0)