Skip to content

Commit

Permalink
[ARM] 3399/1: Fix link problem when CONFIG_PRINTK is disabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
pepsiman authored and Russell King committed Mar 25, 2006
1 parent 80ed354 commit 3ee357f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/lib/backtrace.S
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3ee357f

Please sign in to comment.