All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] checkpatch: Disable more kernel specific checks
@ 2026-05-28 10:27 Petr Vorel
  2026-05-28 10:48 ` Andrea Cervesato via ltp
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Petr Vorel @ 2026-05-28 10:27 UTC (permalink / raw)
  To: ltp

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-28 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28 10:27 [LTP] [PATCH 1/1] checkpatch: Disable more kernel specific checks Petr Vorel
2026-05-28 10:48 ` Andrea Cervesato via ltp
2026-05-28 11:44 ` [LTP] " linuxtestproject.agent
2026-05-28 11:57 ` [LTP] [PATCH 1/1] " Cyril Hrubis
2026-05-28 13:05   ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.