diff options
author | Cyril Chemparathy <cyril@ti.com> | 2012-09-12 14:19:05 (GMT) |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2013-05-30 15:02:22 (GMT) |
commit | 5b20c5b2f014ecc0a6310988af69cd7ede9e7c67 (patch) | |
tree | 2ce339c6d4ce7b0ecc3c1269934ce3d003f170b4 /lib/llist.c | |
parent | 82f667046ec895552caf2f7a4c6841c530bfc215 (diff) | |
download | linux-fsl-qoriq-5b20c5b2f014ecc0a6310988af69cd7ede9e7c67.tar.xz |
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>
Diffstat (limited to 'lib/llist.c')
0 files changed, 0 insertions, 0 deletions