Browse Source

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: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Jaswinder Singh Rajput 16 years ago
parent
commit
7820b75643
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/x86/kernel/xsave.c

+ 1 - 1
arch/x86/kernel/xsave.c

@@ -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;