From: Malcolm Parsons Date: Sat, 25 Mar 2006 21:58:03 +0000 (+0000) Subject: [ARM] 3399/1: Fix link problem when CONFIG_PRINTK is disabled X-Git-Tag: MMI-PSA29.97-13-9~51077^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ee357f0f38a5fddebab18500c290d3879a2d89c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [ARM] 3399/1: Fix link problem when CONFIG_PRINTK is disabled Patch from Malcolm Parsons Printking a backtrace requires printk, so disable backtrace code when printk is disabled. Without this patch, a kernel with CONFIG_PRINTK disabled does not link: arch/arm/lib/lib.a(backtrace.o): In function `c_backtrace': arch/arm/lib/backtrace.S:(.text+0x108): undefined reference to `printk' arch/arm/lib/backtrace.S:(.text+0x11c): undefined reference to `printk' arch/arm/lib/lib.a(backtrace.o):(.fixup+0x8): undefined reference to `printk' Signed-off-by: Malcolm Parsons Signed-off-by: Russell King --- diff --git a/arch/arm/lib/backtrace.S b/arch/arm/lib/backtrace.S index 68a21c0f3f52..3bdc8c6949c5 100644 --- a/arch/arm/lib/backtrace.S +++ b/arch/arm/lib/backtrace.S @@ -29,7 +29,7 @@ ENTRY(__backtrace) ENTRY(c_backtrace) -#ifndef CONFIG_FRAME_POINTER +#if !defined(CONFIG_FRAME_POINTER) || !defined(CONFIG_PRINTK) mov pc, lr #else