The patch titled Subject: mm, mempool: use '%zu' for printing 'size_t' variable has been added to the -mm tree. Its filename is mm-mempool-poison-elements-backed-by-page-allocator-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mempool-poison-elements-backed-by-page-allocator-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mempool-poison-elements-backed-by-page-allocator-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Subject: mm, mempool: use '%zu' for printing 'size_t' variable fix printk warning Commit 8b65aaa9c53404 ("mm, mempool: poison elements backed by page allocator") caused the following build warning on ARM: mm/mempool.c:31:2: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Wformat] Use '%zu' for printing 'size_t' variable. Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/mempool.c~mm-mempool-poison-elements-backed-by-page-allocator-fix mm/mempool.c --- a/mm/mempool.c~mm-mempool-poison-elements-backed-by-page-allocator-fix +++ a/mm/mempool.c @@ -28,7 +28,7 @@ static void poison_error(mempool_t *pool int i; pr_err("BUG: mempool element poison mismatch\n"); - pr_err("Mempool %p size %ld\n", pool, size); + pr_err("Mempool %p size %zu\n", pool, size); pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : ""); for (i = start; i < end; i++) pr_cont("%x ", *(u8 *)(element + i)); _ Patches currently in -mm which might be from fabio.estevam@xxxxxxxxxxxxx are mm-mempool-poison-elements-backed-by-page-allocator-fix.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html