From: "Jan Beulich" Subject: Re: [PATCH for-xen-4.5 v3 04/16] x86: Introduce MultiBoot Data (MBD) type Date: Fri, 10 Oct 2014 13:48:18 +0100 Message-ID: <5437F1B2020000780003DB75@mail.emea.novell.com> References: <1412790736-28915-1-git-send-email-daniel.kiper@oracle.com> <1412790736-28915-5-git-send-email-daniel.kiper@oracle.com> <54366334.6030301@citrix.com> <20141010114701.GN3460@olila.local.net-space.pl> 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 1XcZcJ-0006gR-Ue for xen-devel@lists.xenproject.org; Fri, 10 Oct 2014 12:48:20 +0000 In-Reply-To: <20141010114701.GN3460@olila.local.net-space.pl> 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: Daniel Kiper Cc: Juergen Gross , keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, Andrew Cooper , roy.franz@linaro.org, ning.sun@intel.com, ross.philipson@citrix.com, xen-devel@lists.xenproject.org, qiaowei.ren@intel.com, richard.l.maliszewski@intel.com, gang.wei@intel.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org >>> On 10.10.14 at 13:47, wrote: > On Thu, Oct 09, 2014 at 11:28:04AM +0100, Andrew Cooper wrote: >> On 08/10/14 18:52, Daniel Kiper wrote: >> > --- /dev/null >> > +++ b/xen/arch/x86/boot_info.c >> > @@ -0,0 +1,59 @@ >> > +/* >> > + * Copyright (c) 2013, 2014 Oracle Co., Daniel Kiper >> > + * >> > + * This program is free software; you can redistribute it and/or modify >> > + * it under the terms of the GNU General Public License as published by >> > + * the Free Software Foundation; either version 2 of the License, or >> > + * (at your option) any later version. >> > + * >> > + * This program is distributed in the hope that it will be useful, >> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> > + * GNU General Public License for more details. >> > + * >> > + * You should have received a copy of the GNU General Public License along >> > + * with this program. If not, see . >> > + */ >> > + >> > +#include >> > +#include >> > +#include >> > +#include >> > + >> > +#include >> > +#include >> > + >> > +static multiboot_info_t __read_mostly mbi; >> > + >> > +extern void enable_exception_support(void); >> >> No externs in .c files. This should be in a header file. > > I am still do not understand what is wrong with that. We need > that function only here. So, why we should put it in a header? Because any declaration should be seen not only by all consumers, but also by the producer (unless that is an assembly file of course), to make sure declaration and definition agree with one another. Jan