summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/asm.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-06-01 12:18:30 +0000
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 19:31:18 +0100
commitac130ac494522cf71782117b8dd4b6b57e31e5ea (patch)
treed0118012514a51c192203e7b639bb3aa17635d3e /include/asm-mips/asm.h
parente50c0a8fa60da9ac0e0a70caa8a3a803815c1f2f (diff)
downloadlinux-ac130ac494522cf71782117b8dd4b6b57e31e5ea.tar.gz
linux-ac130ac494522cf71782117b8dd4b6b57e31e5ea.tar.bz2
linux-ac130ac494522cf71782117b8dd4b6b57e31e5ea.zip
Fix build with CONFIG_PRINTK disabled.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/asm.h')
-rw-r--r--include/asm-mips/asm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-mips/asm.h b/include/asm-mips/asm.h
index f53237772985..4b090f3142e0 100644
--- a/include/asm-mips/asm.h
+++ b/include/asm-mips/asm.h
@@ -107,6 +107,7 @@ symbol = value
/*
* Print formatted string
*/
+#ifdef CONFIG_PRINTK
#define PRINT(string) \
.set push; \
.set reorder; \
@@ -114,6 +115,9 @@ symbol = value
jal printk; \
.set pop; \
TEXT(string)
+#else
+#define PRINT(string)
+#endif
#define TEXT(msg) \
.pushsection .data; \