diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2006-03-25 16:58:03 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-25 16:58:03 -0500 |
commit | 3ee357f0f38a5fddebab18500c290d3879a2d89c (patch) | |
tree | edece89250bb68554ce2a145350e1a789ae20ea0 /arch/arm/lib/backtrace.S | |
parent | 80ed354725825035616fb369a8c38ff77494695c (diff) |
[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>
Diffstat (limited to 'arch/arm/lib/backtrace.S')
-rw-r--r-- | arch/arm/lib/backtrace.S | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
29 | 29 | ||
30 | ENTRY(c_backtrace) | 30 | ENTRY(c_backtrace) |
31 | 31 | ||
32 | #ifndef CONFIG_FRAME_POINTER | 32 | #if !defined(CONFIG_FRAME_POINTER) || !defined(CONFIG_PRINTK) |
33 | mov pc, lr | 33 | mov pc, lr |
34 | #else | 34 | #else |
35 | 35 | ||