The patch titled Subject: checkpatch.pl: warn against using %Z has been added to the -mm tree. Its filename is checkpatchpl-warn-against-using-%z.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/checkpatchpl-warn-against-using-%25z.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/checkpatchpl-warn-against-using-%25z.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: Alexey Dobriyan <adobriyan@xxxxxxxxx> Subject: checkpatch.pl: warn against using %Z %Z is going to be removed in favour of %z. Link: http://lkml.kernel.org/r/20170109235955.GA6787@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/checkpatch.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff -puN scripts/checkpatch.pl~checkpatchpl-warn-against-using-%z scripts/checkpatch.pl --- a/scripts/checkpatch.pl~checkpatchpl-warn-against-using-%z +++ a/scripts/checkpatch.pl @@ -5207,6 +5207,12 @@ sub process { "\%Ld/%Lu are not-standard C, use %lld/%llu\n" . $herecurr); last; } + # check for %Z + if ($string =~ /(?<!%)%[\*\d\.\$]*Z[diouxX]/) { + WARN("PRINTF_Z", + "%Z is non-standard C, use %z\n" . $herecurr); + last; + } if ($string =~ /0x%[\*\d\.\$\Llzth]*[udi]/) { ERROR("PRINTF_0xDECIMAL", "Prefixing 0x with decimal output is defective\n" . $herecurr); _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are proc-less-code-duplication-in-proc-cmdline.patch lib-vsprintfc-remove-%z-support.patch checkpatchpl-warn-against-using-%z.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