From: "Jan Beulich" Subject: Re: [PATCH for-4.5 V7 14/14] Add ARM EFI boot support Date: Fri, 26 Sep 2014 07:28:40 +0100 Message-ID: <542523B8020000780003963F@mail.emea.novell.com> References: <1411609352-24549-1-git-send-email-roy.franz@linaro.org> <1411609352-24549-15-git-send-email-roy.franz@linaro.org> <54240F3C0200007800038E1C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Roy Franz Cc: keir , Ian Campbell , tim , xen-devel , Stefano Stabellini , Fu Wei List-Id: xen-devel@lists.xenproject.org >>> On 25.09.14 at 19:05, wrote: > On Thu, Sep 25, 2014 at 3:49 AM, Jan Beulich wrote: >>>>> On 25.09.14 at 03:42, wrote: >>> --- a/xen/common/efi/runtime.c >>> +++ b/xen/common/efi/runtime.c >>> @@ -4,17 +4,22 @@ >>> #include >>> #include >>> #include >>> -#include >>> + >>> +extern spinlock_t rtc_lock; >> >> No extern declarations in .c files for things being defined in other .c >> files please. > > OK, I'll have to look at making asm/mc146818rtc.h a common file, or > moving the extern declaration from that x86 specific include file to a > common one. > (or #ifdef CONFIG_X86 this and the spinlock, but that's not nice either.) Just like you introduced efi-boot.h (which really should have been just boot.h, but I noticed this only when already having been through most of the part that I committed yesterday), we'll need runtime.h anyway sooner or later, and that's where the #include should get moved imo (even if for now this may end up being the only content of that file). Jan