From: David Daney Date: Mon, 24 Jan 2011 22:51:34 +0000 (-0800) Subject: MIPS: Fix GCC-4.6 'set but not used' warning in signal*.c X-Git-Tag: v2.6.38~2^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c726b822131e7fdb62745a5585449e6a159395e8;p=pandora-kernel.git 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 To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2035/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed