Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -1
+1 -1
arch/xtensa/mm/mmu.c
··· 33 33 34 34 pte = memblock_alloc_low(n_pages * sizeof(pte_t), PAGE_SIZE); 35 35 if (!pte) 36 - panic("%s: Failed to allocate %zu bytes align=%lx\n", 36 + panic("%s: Failed to allocate %lu bytes align=%lx\n", 37 37 __func__, n_pages * sizeof(pte_t), PAGE_SIZE); 38 38 39 39 for (i = 0; i < n_pages; ++i)