ARM: 6675/1: use phys_addr_t instead of unsigned long in conversion code
authorWill Deacon <will.deacon@arm.com>
Tue, 15 Feb 2011 16:28:28 +0000 (17:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 17 Feb 2011 23:27:34 +0000 (23:27 +0000)
commit3a6b1676c6f27f7fad1a3d6fab5a95f90b1e7402
tree7457d1896dae7e61bfad76f6d26e2d84a1b3ae7e
parent4d901c4271951d110afb13ee9aa73d27a6c8e53d
ARM: 6675/1: use phys_addr_t instead of unsigned long in conversion code

The unsigned long datatype is not sufficient for mapping physical addresses
>= 4GB.

This patch ensures that the address conversion code in asm/memory.h casts
to the correct type when handling physical addresses. The internal v2p
macros only deal with lowmem addresses, so these do not need to be modified.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/memory.h