]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] 3399/1: Fix link problem when CONFIG_PRINTK is disabled
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Sat, 25 Mar 2006 21:58:03 +0000 (21:58 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 25 Mar 2006 21:58:03 +0000 (21:58 +0000)
commit3ee357f0f38a5fddebab18500c290d3879a2d89c
treeedece89250bb68554ce2a145350e1a789ae20ea0
parent80ed354725825035616fb369a8c38ff77494695c
[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 <malcolm.parsons@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/lib/backtrace.S