From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: [RFC 2/6] xen/arm: earlyprintk: export early_puts Date: Sun, 5 Jan 2014 21:26:27 +0000 Message-ID: <1388957191-10337-3-git-send-email-julien.grall@linaro.org> References: <1388957191-10337-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VzvDd-0000HN-Mz for xen-devel@lists.xenproject.org; Sun, 05 Jan 2014 21:26:49 +0000 Received: by mail-la0-f54.google.com with SMTP id b8so9205347lan.41 for ; Sun, 05 Jan 2014 13:26:47 -0800 (PST) In-Reply-To: <1388957191-10337-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, ian.campbell@citrix.com, Julien Grall , patches@linaro.org List-Id: xen-devel@lists.xenproject.org Signed-off-by: Julien Grall --- xen/arch/arm/early_printk.c | 2 +- xen/include/asm-arm/early_printk.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/early_printk.c b/xen/arch/arm/early_printk.c index 7143f9e..affe424 100644 --- a/xen/arch/arm/early_printk.c +++ b/xen/arch/arm/early_printk.c @@ -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') diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h index 707bbf7..31024b5 100644 --- a/xen/include/asm-arm/early_printk.h +++ b/xen/include/asm-arm/early_printk.h @@ -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 early_panic(const char *fmt, ...) __attribute__((noreturn)) @@ -31,6 +32,9 @@ void early_panic(const char *fmt, ...) __attribute__((noreturn)) #else +static inline void early_puts(const char *) +{} + static inline __attribute__((format (printf, 1, 2))) void early_printk(const char *fmt, ...) {} -- 1.8.3.1