[LTP] [PATCH 1/1] checkpatch: Disable more kernel specific checks
Petr Vorel
pvorel@suse.cz
Thu May 28 12:27:57 CEST 2026
Disable kernel specific checks:
* BIT_MACRO
mmapstress08.c:26: CHECK: Prefer using the BIT macro
=> reports against valid #define GRAN_NUMBER (1<<8)
* PREFER_DEFINED_ATTRIBUTE_MACRO
Kernel has various attribute macros, it does not make sense to check
without syncing the code
(https://github.com/linux-test-project/ltp/issues/1318).
Reported-by: Andrea Cervesato <andrea.cervesato@suse.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
IMHO safe to merge, but sure it can wait after the release.
.checkpatch.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.checkpatch.conf b/.checkpatch.conf
index 4aa6f709b6..4ca32f333e 100644
--- a/.checkpatch.conf
+++ b/.checkpatch.conf
@@ -10,7 +10,7 @@
--strict
# kernel specific
---ignore PREFER_KERNEL_TYPES,STRCPY,STRLCPY,STRNCPY
+--ignore PREFER_KERNEL_TYPES,STRCPY,STRLCPY,STRNCPY,BIT_MACRO,PREFER_DEFINED_ATTRIBUTE_MACRO
# TODO: document reason
--ignore CONST_STRUCT,VOLATILE,FILE_PATH_CHANGES,LONG_LINE,MACRO_ARG_REUSE,MULTIPLE_ASSIGNMENTS
--
2.54.0
More information about the ltp
mailing list