From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH] x86/xen: populate boot_params with EDD data Date: Wed, 3 Apr 2013 10:51:03 -0400 Message-ID: <20130403145103.GD6044@phenom.dumpdata.com> References: <1364987449-10076-1-git-send-email-david.vrabel@citrix.com> <515C410C02000078000CA55F@nat28.tlf.novell.com> <515C254C.8050503@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <515C254C.8050503@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, Apr 03, 2013 at 01:49:16PM +0100, David Vrabel wrote: > On 03/04/13 13:47, Jan Beulich wrote: > >>>> On 03.04.13 at 13:10, David Vrabel wrote: > >> +} > >> +#else > >> +static inline void __init load_edd(void) > >> +{ > >> +} > >> +#endif > > > > And if you put the conditionals inside the curly braces, you can > > avoid the else portion here altogether. > > I thought the #if around the whole function was the standard pattern. > Konrad, what's your opinion here? That is the way to do it in the header files. You are not doing this in a header, I would go with what Jan suggested and just do the #ifdef CONFIG_EDD.. inside the function. Also just for completness, lets call the function 'xen_load_edd' > > David > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >