From: Ralf Baechle Date: Tue, 7 Aug 2007 14:02:55 +0000 (+0100) Subject: [MIPS] Fix build error if CONFIG_KALLSYMS is undefined. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de4b21474053513d9ad41994c95dade3e6b3362f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 --- diff --git a/include/asm-mips/stacktrace.h b/include/asm-mips/stacktrace.h index 07f873351a86..87bd7caec1cf 100644 --- a/include/asm-mips/stacktrace.h +++ b/include/asm-mips/stacktrace.h @@ -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)