All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org, tim@xen.org,
	stefano.stabellini@citrix.com
Subject: Re: [PATCH v3 0/5] xen/arm: Merge early_printk function in console code
Date: Fri, 14 Mar 2014 15:42:56 +0000	[thread overview]
Message-ID: <53232380.2010503@linaro.org> (raw)
In-Reply-To: <1394808176.6442.96.camel@kazak.uk.xensource.com>

Hi Ian,

On 03/14/2014 02:42 PM, Ian Campbell wrote:
> On Wed, 2014-03-12 at 14:34 +0000, Julien Grall wrote:
>> Hello all,
>>
>> This patch series aims to merge early printk in the console code. This will
>> avoid the developper to care whether the message is printed before or after
>> the console is initialized.
>>
>> Sincerely yours,
>>
>> Julien Grall (5):
>>   xen/arm: earlyprintk: move early_flush in early_puts
>>   xen/arm: earlyprintk: export early_puts
>>   xen/arm: Rename EARLY_PRINTK compile option to CONFIG_EARLY_PRINTK
> 
> Something in these three (I think) causes:
> In file included from device_tree.c:26:0:
> /local/scratch/ianc/devel/committer.git/xen/include/asm/early_printk.h: In function ‘early_puts’:
> /local/scratch/ianc/devel/committer.git/xen/include/asm/early_printk.h:35:1: error: parameter name omitted
> make[4]: *** [device_tree.o] Error 1
> make[4]: *** Waiting for unfinished jobs....

Patch #2 is wrong, I forgot to give a name for the paremater of
early_puts. The patch should be:

diff --git a/xen/arch/arm/early_printk.c b/xen/arch/arm/early_printk.c
index b59ea2e..6b90998 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 8047141..1b0fbdf 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 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 *s) {}
+
 static inline  __attribute__((format (printf, 1, 2))) void
 early_printk(const char *fmt, ...)
 {}


-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2014-03-14 15:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12 14:34 [PATCH v3 0/5] xen/arm: Merge early_printk function in console code Julien Grall
2014-03-12 14:34 ` [PATCH v3 1/5] xen/arm: earlyprintk: move early_flush in early_puts Julien Grall
2014-03-12 14:34 ` [PATCH v3 2/5] xen/arm: earlyprintk: export early_puts Julien Grall
2014-03-12 14:34 ` [PATCH v3 3/5] xen/arm: Rename EARLY_PRINTK compile option to CONFIG_EARLY_PRINTK Julien Grall
2014-03-12 14:34 ` [PATCH v3 4/5] xen/console: Add support for early printk Julien Grall
2014-03-12 15:20   ` Jan Beulich
2014-03-12 15:32     ` Julien Grall
2014-03-12 14:34 ` [PATCH v3 5/5] xen/arm: Replace early_{printk, panic} call to {printk, panic} call Julien Grall
2014-03-12 15:15 ` [PATCH v3 0/5] xen/arm: Merge early_printk function in console code Jan Beulich
2014-03-12 15:31   ` Julien Grall
2014-03-12 16:44     ` Jan Beulich
2014-03-12 16:52       ` Ian Campbell
2014-03-14 14:42 ` Ian Campbell
2014-03-14 15:42   ` Julien Grall [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53232380.2010503@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.