ARM: fix type of PHYS_PFN_OFFSET to unsigned long
authorCyril Chemparathy <cyril@ti.com>
Wed, 12 Sep 2012 14:19:05 +0000 (10:19 -0400)
committerWill Deacon <will.deacon@arm.com>
Thu, 30 May 2013 15:02:22 +0000 (16:02 +0100)
commit5b20c5b2f014ecc0a6310988af69cd7ede9e7c67
tree2ce339c6d4ce7b0ecc3c1269934ce3d003f170b4
parent82f667046ec895552caf2f7a4c6841c530bfc215
ARM: fix type of PHYS_PFN_OFFSET to unsigned long

On LPAE machines, PHYS_OFFSET evaluates to a phys_addr_t and this type is
inherited by the PHYS_PFN_OFFSET definition as well.  Consequently, the kernel
build emits warnings of the form:

init/main.c: In function 'start_kernel':
init/main.c:588:7: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' [-Wformat]

This patch fixes this warning by pinning down the PFN type to unsigned long.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Subash Patel <subash.rp@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/memory.h