Fix build with CONFIG_PRINTK disabled.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
e50c0a8fa6
commit
ac130ac494
|
@ -107,6 +107,7 @@ symbol = value
|
||||||
/*
|
/*
|
||||||
* Print formatted string
|
* Print formatted string
|
||||||
*/
|
*/
|
||||||
|
#ifdef CONFIG_PRINTK
|
||||||
#define PRINT(string) \
|
#define PRINT(string) \
|
||||||
.set push; \
|
.set push; \
|
||||||
.set reorder; \
|
.set reorder; \
|
||||||
|
@ -114,6 +115,9 @@ symbol = value
|
||||||
jal printk; \
|
jal printk; \
|
||||||
.set pop; \
|
.set pop; \
|
||||||
TEXT(string)
|
TEXT(string)
|
||||||
|
#else
|
||||||
|
#define PRINT(string)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define TEXT(msg) \
|
#define TEXT(msg) \
|
||||||
.pushsection .data; \
|
.pushsection .data; \
|
||||||
|
|
Loading…
Reference in New Issue