From ac130ac494522cf71782117b8dd4b6b57e31e5ea Mon Sep 17 00:00:00 2001
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 1 Jun 2005 12:18:30 +0000
Subject: [PATCH] Fix build with CONFIG_PRINTK disabled.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
 include/asm-mips/asm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/asm-mips/asm.h b/include/asm-mips/asm.h
index f53237772985b..4b090f3142e0d 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;			\
-- 
GitLab