Commit 63238f2c authored by Guenter Roeck's avatar Guenter Roeck Committed by Ralf Baechle

MIPS: Fix build error seen in some configurations

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: c0ff3c53 ('MIPS: Enable HAVE_ARCH_TRACEHOOK')
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarDavid Daney <david.daney@cavium.com>
Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6160/
parent b2e4f156
...@@ -29,7 +29,7 @@ static inline long syscall_get_nr(struct task_struct *task, ...@@ -29,7 +29,7 @@ static inline long syscall_get_nr(struct task_struct *task,
static inline unsigned long mips_get_syscall_arg(unsigned long *arg, static inline unsigned long mips_get_syscall_arg(unsigned long *arg,
struct task_struct *task, struct pt_regs *regs, unsigned int n) struct task_struct *task, struct pt_regs *regs, unsigned int n)
{ {
unsigned long usp = regs->regs[29]; unsigned long usp __maybe_unused = regs->regs[29];
switch (n) { switch (n) {
case 0: case 1: case 2: case 3: case 0: case 1: case 2: case 3:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment