From 91591e4749d561767e9e837fd397e0b5cfcf0207 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Fri, 21 Aug 2026 16:02:39 +0300 Subject: [PATCH] scripts: Ignore complex macro diagnostics SCST uses macro fragments for sense tuples, initializer lists and other contexts where enclosing the expansion in parentheses would change its meaning. Treat COMPLEX_MACRO as a project-wide checkpatch exception. --- scripts/checkpatch | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch b/scripts/checkpatch index 6439a79e8..64cff7c9d 100755 --- a/scripts/checkpatch +++ b/scripts/checkpatch @@ -17,6 +17,7 @@ ignore=( CONSTANT_COMPARISON NEW_TYPEDEFS AVOID_BUG + COMPLEX_MACRO MACRO_ARG_REUSE IF_0 LONG_LINE_STRING