[PATCH] ARM: fix v7M build for !CONFIG_PRINTK
Rob Herring
robh at kernel.org
Sun Jan 11 20:25:49 PST 2015
Minimal builds for v7M are broken when printk is disabled. The caller is
assembly so add the necessary ifdef around the call.
Signed-off-by: Rob Herring <robh at kernel.org>
---
arch/arm/kernel/entry-v7m.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/kernel/entry-v7m.S b/arch/arm/kernel/entry-v7m.S
index 2260f18..8944f49 100644
--- a/arch/arm/kernel/entry-v7m.S
+++ b/arch/arm/kernel/entry-v7m.S
@@ -22,10 +22,12 @@
__invalid_entry:
v7m_exception_entry
+#ifdef CONFIG_PRINTK
adr r0, strerr
mrs r1, ipsr
mov r2, lr
bl printk
+#endif
mov r0, sp
bl show_regs
1: b 1b
--
2.1.0
More information about the linux-arm-kernel
mailing list