checkpatch-ignore-inttypesh-format-macros-for-userspace-tools.patch removed from -mm tree
The quilt patch titled
Subject: checkpatch: ignore <inttypes.h> format macros for userspace tools
has been removed from the -mm tree. Its filename was
checkpatch-ignore-inttypesh-format-macros-for-userspace-tools.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Petr Vorel <[email protected]>
Subject: checkpatch: ignore <inttypes.h> format macros for userspace tools
Date: Fri, 4 Sep 2026 13:02:28 +0200
Constants from <inttypes.h> are used only in userspace tools, they are from ISO C99, let's don't report it:
arch/mips/boot/tools/relocs.c:572: CHECK: Avoid CamelCase: <PRIx32> arch/s390/tools/relocs.c:52: CHECK: Avoid CamelCase: <PRIu64> tools/testing/selftests/mm/vm_util.c:244: CHECK: Avoid CamelCase: <SCNu64>
---
scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-ignore-inttypesh-format-macros-for-userspace-tools +2 -0
@@ -5950,6 +5950,8 @@ sub process { #Ignore SI style variants like nS, mV and dB #(ie: max_uV, regulator_min_uA_show, RANGE_mA_VALUE) $var !~ /^(?:[a-z0-9_]*|[A-Z0-9_]*)?_?[a-z][A-Z](?:_[a-z0-9_]+|_[A-Z0-9_]+)?$/ && +#Ignore <inttypes.h> format macros (e.g. PRIu64, SCNu64) + (is_userspace($realfile) ? $var !~ /^(?:PRI|SCN)[dioux][A-Z0-9]+$/ : 1) && #Ignore some three character SI units explicitly, like MiB and KHz $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) { while ($var =~ m{\b($Ident)}g) {
_
Patches currently in -mm which might be from [email protected] are