Browse Source

Fix build with CONFIG_PRINTK disabled.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 20 years ago
parent
commit
ac130ac494
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/asm-mips/asm.h

+ 4 - 0
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;			\