From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Date: Mon, 11 Jan 2016 18:47:49 +0000 Subject: Re: [PATCH] efi: add conditional include of asm/early_ioremap.h Message-Id: <20160111184749.GA15115@roeck-us.net> List-Id: References: <1452456249-2974-1-git-send-email-ard.biesheuvel@linaro.org> <20160111144004.GD2644@codeblueprint.co.uk> <5693D52E.9090407@roeck-us.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ard Biesheuvel Cc: "Williams, Dan J" , Matt Fleming , "linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Will Deacon , Fenghua Yu , Tony Luck , "linux-ia64-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" On Mon, Jan 11, 2016 at 06:35:44PM +0100, Ard Biesheuvel wrote: [ ... ] > >> > >> > >> I certainly can't think of a better way to fix this right now. Tony, > >> Fenghua do you guys have any suggestions? > >> > > > > How about including asm/early_ioremap.h from arch/arm/include/asm/io.h, > > as it is done by arm64 and x86 ? > > > > That would work as well, but it does not address how early_memremap() > is so poorly defined. I think the correct way would be to add the > include unconditionally, and move ia64's definition to a new ia64 > version of early_ioremap.h Depends on the definition of "poorly". Is the API exported through asm/early_ioremap.h, or through asm/io.h ? Guenter