[MIPS] Fix build error if CONFIG_KALLSYMS is undefined.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 7 Aug 2007 14:02:55 +0000 (15:02 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 27 Aug 2007 01:16:55 +0000 (02:16 +0100)
  CC      arch/mips/kernel/traps.o
arch/mips/kernel/traps.c: In function 'show_backtrace':
arch/mips/kernel/traps.c:110: warning: unused variable 'ra'

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/stacktrace.h

index 07f873351a86820e0de9b1229b26358863da0029..87bd7caec1cfa038f6dcc2b693723d31066b52bd 100644 (file)
@@ -9,7 +9,10 @@ extern unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
                                  unsigned long pc, unsigned long *ra);
 #else
 #define raw_show_trace 1
-#define unwind_stack(task, sp, pc, ra) 0
+static inline unsigned long unwind_stack(struct task_struct *task,
+       unsigned long *sp, unsigned long pc, unsigned long *ra)
+{
+}
 #endif
 
 static __always_inline void prepare_frametrace(struct pt_regs *regs)