From: "Wu, Bryan" Just include linux/kallsyms.h all the time as the header will handle prototypes/defines when CONFIG_KALLSYMS is disabled ... fixes build error when disabled due to print_ip_sym not being macroed away Signed-off-by: Bryan Wu Signed-off-by: Andrew Morton --- arch/blackfin/kernel/traps.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -puN arch/blackfin/kernel/traps.c~blackfin-arch-always-include-linux-kallsysms-header-file arch/blackfin/kernel/traps.c --- a/arch/blackfin/kernel/traps.c~blackfin-arch-always-include-linux-kallsysms-header-file +++ a/arch/blackfin/kernel/traps.c @@ -35,6 +35,8 @@ #include #include #include +#include + #ifdef CONFIG_KGDB # include # include @@ -52,9 +54,6 @@ asmlinkage void trap_c(struct pt_regs *f int kstack_depth_to_print = 48; -#ifdef CONFIG_KALLSYMS -#include -#endif static int printk_address(unsigned long address) { struct vm_list_struct *vml; _