From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754677Ab3EaNZr (ORCPT ); Fri, 31 May 2013 09:25:47 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:1686 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750837Ab3EaNZj (ORCPT ); Fri, 31 May 2013 09:25:39 -0400 X-IronPort-AV: E=Sophos;i="4.87,779,1363132800"; d="scan'208";a="27159944" Date: Fri, 31 May 2013 14:25:20 +0100 From: Stefano Stabellini X-X-Sender: sstabellini@kaball.uk.xensource.com To: Catalin Marinas CC: Stefano Stabellini , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "xen-devel@lists.xensource.com" , Will Deacon , "Ian.Campbell@citrix.com" , "konrad.wilk@oracle.com" Subject: Re: [PATCH RFC 2/6] arm64/xen: arm/xen header changes to compile on arm64 In-Reply-To: <20130531104303.GB18045@localhost.cambridge.arm.com> Message-ID: References: <1369930713-6063-2-git-send-email-stefano.stabellini@eu.citrix.com> <20130531104303.GB18045@localhost.cambridge.arm.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 May 2013, Catalin Marinas wrote: > On Thu, May 30, 2013 at 05:18:29PM +0100, Stefano Stabellini wrote: > > Signed-off-by: Stefano Stabellini > > --- > > arch/arm/include/asm/xen/events.h | 4 ++++ > > arch/arm/include/asm/xen/page.h | 2 ++ > > 2 files changed, 6 insertions(+), 0 deletions(-) > > > > diff --git a/arch/arm/include/asm/xen/events.h b/arch/arm/include/asm/xen/events.h > > index 8b1f37b..12e4e0b 100644 > > --- a/arch/arm/include/asm/xen/events.h > > +++ b/arch/arm/include/asm/xen/events.h > > @@ -13,7 +13,11 @@ enum ipi_vector { > > > > static inline int xen_irqs_disabled(struct pt_regs *regs) > > { > > +#ifdef CONFIG_ARM > > return raw_irqs_disabled_flags(regs->ARM_cpsr); > > +#else > > + return raw_irqs_disabled_flags((unsigned long) regs->pstate); > > +#endif > > } > > At least for this part, it makes sense to live in the arch/arm64 > directory. Yes, good idea, there isn't much else in that header file anyway. > > #define xchg_xen_ulong(ptr, val) atomic64_xchg(container_of((ptr), \ > > diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h > > index 30cdacb..cb2fa15 100644 > > --- a/arch/arm/include/asm/xen/page.h > > +++ b/arch/arm/include/asm/xen/page.h > > @@ -1,7 +1,9 @@ > > #ifndef _ASM_ARM_XEN_PAGE_H > > #define _ASM_ARM_XEN_PAGE_H > > > > +#ifdef ARM > > #include > > +#endif > > #include > > #include > > Is there anything ARM-specific in this file? The only ARM-specific stuff here is the definition of xen_remap, like you have spotted in the other email. The inclusion of asm/mach/map.h is needed because it containes the definition of MT_MEMORY.