diff options
| author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2008-12-30 11:35:55 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-30 16:31:41 -0500 |
| commit | 7820b75643a763abf595c99fab963000ffc8b5f0 (patch) | |
| tree | db453bd7d700dc718040300aecae05586108c890 | |
| parent | fa95826fe0ddbc2a55373134d8d1a21b49d13434 (diff) | |
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>
| -rw-r--r-- | arch/x86/kernel/xsave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c index 15c3e6999182..2b54fe002e94 100644 --- a/arch/x86/kernel/xsave.c +++ b/arch/x86/kernel/xsave.c | |||
| @@ -159,7 +159,7 @@ int save_i387_xstate(void __user *buf) | |||
| 159 | * Restore the extended state if present. Otherwise, restore the FP/SSE | 159 | * Restore the extended state if present. Otherwise, restore the FP/SSE |
| 160 | * state. | 160 | * state. |
| 161 | */ | 161 | */ |
| 162 | int restore_user_xstate(void __user *buf) | 162 | static int restore_user_xstate(void __user *buf) |
| 163 | { | 163 | { |
| 164 | struct _fpx_sw_bytes fx_sw_user; | 164 | struct _fpx_sw_bytes fx_sw_user; |
| 165 | u64 mask; | 165 | u64 mask; |
