projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae85249
)
x86/fpu: Remove second definition of fpu in __fpu__restore_sig()
author
Sebastian Andrzej Siewior
<
[email protected]
>
Tue, 16 Oct 2018 20:25:24 +0000
(22:25 +0200)
committer
Ingo Molnar
<
[email protected]
>
Wed, 17 Oct 2018 10:30:31 +0000
(12:30 +0200)
Commit:
c5bedc6847c3b
("x86/fpu: Get rid of PF_USED_MATH usage, convert it to fpu->fpstate_active")
introduced the 'fpu' variable at top of __restore_xstate_sig(),
which now shadows the other definition:
arch/x86/kernel/fpu/signal.c:318:28: warning: symbol 'fpu' shadows an earlier one
arch/x86/kernel/fpu/signal.c:271:20: originally declared here
Remove the shadowed definition of 'fpu', as the two definitions are the same.
Signed-off-by: Sebastian Andrzej Siewior <
[email protected]
>
Reviewed-by: Andy Lutomirski <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Fixes: c5bedc6847c3b ("x86/fpu: Get rid of PF_USED_MATH usage, convert it to fpu->fpstate_active")
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/fpu/signal.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/fpu/signal.c
b/arch/x86/kernel/fpu/signal.c
index 23f1691670b66c3ad8efcbc2db79bd495e266c1d..61a949d84dfa52aff8572bfd88a3e6dc43556222 100644
(file)
--- a/
arch/x86/kernel/fpu/signal.c
+++ b/
arch/x86/kernel/fpu/signal.c
@@
-314,7
+314,6
@@
static int __fpu__restore_sig(void __user *buf, void __user *buf_fx, int size)
* thread's fpu state, reconstruct fxstate from the fsave
* header. Validate and sanitize the copied state.
*/
- struct fpu *fpu = &tsk->thread.fpu;
struct user_i387_ia32_struct env;
int err = 0;