Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7820b756 authored by Jaswinder Singh Rajput's avatar Jaswinder Singh Rajput Committed by H. Peter Anvin
Browse files

x86: xsave.c: restore_user_xstate should be static



Impact: cleanup, reduce kernel size a bit, avoid sparse warning

Fixes sparse warning:
arch/x86/kernel/xsave.c:162:5: warning: symbol 'restore_user_xstate' was not declared. Should it be static?

Signed-off-by: default avatarJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent fa95826f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -159,7 +159,7 @@ int save_i387_xstate(void __user *buf)
 * Restore the extended state if present. Otherwise, restore the FP/SSE
 * Restore the extended state if present. Otherwise, restore the FP/SSE
 * state.
 * state.
 */
 */
int restore_user_xstate(void __user *buf)
static int restore_user_xstate(void __user *buf)
{
{
	struct _fpx_sw_bytes fx_sw_user;
	struct _fpx_sw_bytes fx_sw_user;
	u64 mask;
	u64 mask;