From: "Jan Beulich" Subject: Re: [PATCH v3 4/5] xen/console: Add support for early printk Date: Wed, 12 Mar 2014 15:20:04 +0000 Message-ID: <5320893402000078001234E4@nat28.tlf.novell.com> References: <1394634891-27906-1-git-send-email-julien.grall@linaro.org> <1394634891-27906-5-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WNkwz-0008Ie-Jq for xen-devel@lists.xenproject.org; Wed, 12 Mar 2014 15:20:09 +0000 In-Reply-To: <1394634891-27906-5-git-send-email-julien.grall@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, Keir Fraser , stefano.stabellini@citrix.com, ian.campbell@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 12.03.14 at 15:34, Julien Grall wrote: > --- /dev/null > +++ b/xen/include/xen/early_printk.h > @@ -0,0 +1,21 @@ > +/* > + * printk() for use before the console is initialized > + */ > +#ifndef __XEN_EARLY_PRINTK_H__ > +#define __XEN_EARLY_PRINTK_H__ > + > +#ifdef CONFIG_EARLY_PRINTK > +void early_puts(const char *s); > +#else > +static inline void early_puts(const char *s) {}; Considering that the only (source) use of the function is to take its address, using an inline function for that purpose is bogus. Either #define it to NULL (thus leaving the serial_steal_fn initializer unchanged for x86) or have it be a static __init function in xen/drivers/char/console.c, conditional upon !CONFIG_EARLY_PRINTK. Jan