From: Rob Herring Date: Tue, 22 Apr 2014 17:50:24 +0000 (-0500) Subject: of/fdt: fix phys_addr_t related print size warnings X-Git-Tag: firefly_0821_release~176^2~3785^2~21^2~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1d1a661da4c8468b3fa6f567b2b1f8cdeafa847a;p=firefly-linux-kernel-4.4.55.git of/fdt: fix phys_addr_t related print size warnings Fix warnings in early_init_dt_reserve_memory_arch when phys_addr_t is 32-bit and memblock is not enabled. Signed-off-by: Rob Herring Tested-by: Grant Likely Tested-by: Stephen Chivers --- diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 051be4ca25b9..d9e64504cda0 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -852,8 +852,8 @@ void * __init __weak early_init_dt_alloc_memory_arch(u64 size, u64 align) int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size, bool nomap) { - pr_err("Reserved memory not supported, ignoring range 0x%llx - 0x%llx%s\n", - base, size, nomap ? " (nomap)" : ""); + pr_err("Reserved memory not supported, ignoring range 0x%pa - 0x%pa%s\n", + &base, &size, nomap ? " (nomap)" : ""); return -ENOSYS; } #endif