MIPS: Fix build error seen in some configurations
authorGuenter Roeck <linux@roeck-us.net>
Mon, 25 Nov 2013 23:21:00 +0000 (15:21 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Mar 2014 17:05:15 +0000 (10:05 -0700)
commit32d9ea80588be5522c8ceaff265676ea8c9875f3
tree1f69eea803f295eea054e3b334d5c830158dc12d
parentbb2a1aaf7b548ea50b03f609150f30ff952bd6f2
MIPS: Fix build error seen in some configurations

commit 63238f2cc5518e1c45a3418fc0ac0f560dafe7ef upstream.

The following build error is seen if CONFIG_32BIT is undefined,
CONFIG_64BIT is defined, and CONFIG_MIPS32_O32 is undefined.

asm/syscall.h: In function 'mips_get_syscall_arg':
arch/mips/include/asm/syscall.h:32:16: error: unused variable 'usp' [-Werror=unused-variable]
cc1: all warnings being treated as errors

Fixes: c0ff3c53d4f9 ('MIPS: Enable HAVE_ARCH_TRACEHOOK')
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6160/
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/asm/syscall.h