[PATCH] arm64: ioremap: change ioremap prototype and add ioremap_cache macro

Catalin Marinas catalin.marinas at arm.com
Fri Sep 4 08:27:48 PDT 2015


On Thu, Aug 27, 2015 at 04:21:00PM +0800, yalin wang wrote:
> This patch change ioremap_*() first parameter type to resource_size_t to
> be the same as other platforms, and add ioremap_cache macro,
> because some code will test if this macro is defined or not, and
> will generate a generric version if not defined, for example,
> memremap.c do like this.

It seems that asm-generic/io.h uses phys_addr_t (which makes more sense
to me, though they are practically the same).

> +#define ioremap_cache			ioremap_cache

This makes sense.

-- 
Catalin



More information about the linux-arm-kernel mailing list