xen/arm: earlyprintk: export early_puts
authorJulien Grall <julien.grall@linaro.org>
Thu, 13 Mar 2014 15:09:15 +0000 (15:09 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 1 Apr 2014 10:27:21 +0000 (11:27 +0100)
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Cambpell <ian.campbell@citrix.com>
xen/arch/arm/early_printk.c
xen/include/asm-arm/early_printk.h

index b59ea2ebc1aa0c22d020d8959516747d3eed7f47..6b90998fe5a7cef91474867961926c1a4eacffaa 100644 (file)
@@ -21,7 +21,7 @@ void early_flush(void);
 /* Early printk buffer */
 static char __initdata buf[512];
 
-static void __init early_puts(const char *s)
+void early_puts(const char *s)
 {
     while (*s != '\0') {
         if (*s == '\n')
index 80471417afd445317d93c1204717c7b11af343f8..100ae237a4a3eae4bf27a543b656c8bff9970e19 100644 (file)
@@ -24,6 +24,7 @@
 
 #ifdef EARLY_PRINTK
 
+void early_puts(const char *s);
 void early_printk(const char *fmt, ...)
     __attribute__((format (printf, 1, 2)));
 void noreturn early_panic(const char *fmt, ...)
@@ -31,6 +32,8 @@ void noreturn early_panic(const char *fmt, ...)
 
 #else
 
+static inline void early_puts(const char *) {}
+
 static inline  __attribute__((format (printf, 1, 2))) void
 early_printk(const char *fmt, ...)
 {}