Skip to content

Commit

Permalink
[MIPS] Fix build error if CONFIG_KALLSYMS is undefined.
Browse files Browse the repository at this point in the history
  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>
  • Loading branch information
Ralf Baechle committed Aug 27, 2007
1 parent 3f478a8 commit de4b214
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/asm-mips/stacktrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit de4b214

Please sign in to comment.