[PATCHv2] arm: mm: Use phys_addr_t properly for ioremap functions
Arnd Bergmann
arnd at arndb.de
Wed May 15 10:15:39 EDT 2013
On Tuesday 14 May 2013, Laura Abbott wrote:
> Several of the ioremap functions use unsigned long in places
> resulting in truncation if physical addresses greater than
> 4G are passed in. Change the types of the functions and the
> callers accordingly.
Looks good to me. I wonder a bit whether resource_size_t or phys_addr_t
is the right type here, but they are always defined to the same type
these days.
FWIW, x86 and tile use resource_size_t, while a couple of other architectures
use phys_addr_t.
Arnd
More information about the linux-arm-kernel
mailing list