linux/arch/x86/kernel/fpu
Yejune Deng 0a74d61c7d x86/fpu/xstate: Use sizeof() instead of a constant
Use sizeof() instead of a constant in fpstate_sanitize_xstate().
Remove use of the address of the 0th array element of ->st_space and
->xmm_space which is equivalent to the array address itself:

No code changed:

  # arch/x86/kernel/fpu/xstate.o:

   text    data     bss     dec     hex filename
   9694     899       4   10597    2965 xstate.o.before
   9694     899       4   10597    2965 xstate.o.after

md5:
   5a43fc70bad8e2a1784f67f01b71aabb  xstate.o.before.asm
   5a43fc70bad8e2a1784f67f01b71aabb  xstate.o.after.asm

 [ bp: Massage commit message. ]

Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210122071925.41285-1-yejune.deng@gmail.com
2021-01-29 12:33:17 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bugs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
core.c x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state 2021-01-21 12:07:28 +01:00
init.c x86/fpu: Handle FPU-related and clearcpuid command line arguments earlier 2020-09-22 00:24:27 +02:00
regset.c x86: switch to ->regset_get() 2020-07-27 14:31:07 -04:00
signal.c x86: switch to ->regset_get() 2020-07-27 14:31:07 -04:00
xstate.c x86/fpu/xstate: Use sizeof() instead of a constant 2021-01-29 12:33:17 +01:00