diff options
author | David Daney <ddaney@caviumnetworks.com> | 2011-01-24 14:51:34 -0800 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-03-14 21:07:25 +0100 |
commit | c726b822131e7fdb62745a5585449e6a159395e8 (patch) | |
tree | f71f25b0444db1a00eca9985f19956eb18fe2aa5 /arch/mips/kernel/spinlock_test.c | |
parent | a18059ace1eee8c4755bcce22163d137425db607 (diff) |
MIPS: Fix GCC-4.6 'set but not used' warning in signal*.c
GCC-4.6 can find more unused code than previous versions could.
In the case of protected_restore_fp_context{,32}, the variable tmp is
really used. Its use is tricky in that we really care about the side
effects of the __put_user() calls. So we must mark tmp with
__maybe_unused to quiet the warning.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2035/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/spinlock_test.c')
0 files changed, 0 insertions, 0 deletions