Skip to content

Commit 1d1a661

Browse files
committed
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 <[email protected]> Tested-by: Grant Likely <[email protected]> Tested-by: Stephen Chivers <[email protected]>
1 parent d1552ce commit 1d1a661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/of/fdt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,8 @@ void * __init __weak early_init_dt_alloc_memory_arch(u64 size, u64 align)
852852
int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base,
853853
phys_addr_t size, bool nomap)
854854
{
855-
pr_err("Reserved memory not supported, ignoring range 0x%llx - 0x%llx%s\n",
856-
base, size, nomap ? " (nomap)" : "");
855+
pr_err("Reserved memory not supported, ignoring range 0x%pa - 0x%pa%s\n",
856+
&base, &size, nomap ? " (nomap)" : "");
857857
return -ENOSYS;
858858
}
859859
#endif

0 commit comments

Comments
 (0)