Skip to content

Commit ecae26f

Browse files
committed
xtensa: fix format string warning in init_pmd
Use %lu instead of %zu to fix the following warning introduced with recent memblock refactoring: xtensa/mm/mmu.c:36:9: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'long unsigned int Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent ada770b commit ecae26f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/mm/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages)
3333

3434
pte = memblock_alloc_low(n_pages * sizeof(pte_t), PAGE_SIZE);
3535
if (!pte)
36-
panic("%s: Failed to allocate %zu bytes align=%lx\n",
36+
panic("%s: Failed to allocate %lu bytes align=%lx\n",
3737
__func__, n_pages * sizeof(pte_t), PAGE_SIZE);
3838

3939
for (i = 0; i < n_pages; ++i)

0 commit comments

Comments
 (0)