[MIPS] Fix build error if CONFIG_KALLSYMS is undefined.
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>
This commit is contained in:
parent
3f478a8739
commit
de4b214740
|
@ -9,7 +9,10 @@ extern unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
|
||||||
unsigned long pc, unsigned long *ra);
|
unsigned long pc, unsigned long *ra);
|
||||||
#else
|
#else
|
||||||
#define raw_show_trace 1
|
#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
|
#endif
|
||||||
|
|
||||||
static __always_inline void prepare_frametrace(struct pt_regs *regs)
|
static __always_inline void prepare_frametrace(struct pt_regs *regs)
|
||||||
|
|
Loading…
Reference in New Issue