* [PATCH v2 1/1] checkpatch: add MA_STATE to declaration_macros
@ 2025-11-09 15:32 Jim Cromie
0 siblings, 0 replies; only message in thread
From: Jim Cromie @ 2025-11-09 15:32 UTC (permalink / raw)
To: linux-kernel
Cc: akpm, Jim Cromie, kernel test robot, Andy Whitcroft, Joe Perches,
Dwaipayan Ray, Lukas Bulwahn
MA_STATE is used repeatedly as a declaration, add it to the list.
I left out the $Storage regex component, since I saw no use-cases
needing it, via: $> grep -r -B1 '\bMA_STATE'
This change to checkpatch --strict behavior fixes the following
lkp-robot report, reproduced locally.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild/202511071306.OJpTf7fK-lkp@intel.com/
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
---
v2 - fix broken closes link
---
scripts/checkpatch.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e722dd6fa8ef..4b5e2e64dece 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1096,7 +1096,8 @@ our $declaration_macros = qr{(?x:
(?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(|
(?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(|
(?:SKCIPHER_REQUEST|SHASH_DESC|AHASH_REQUEST)_ON_STACK\s*\(|
- (?:$Storage\s+)?(?:XA_STATE|XA_STATE_ORDER)\s*\(
+ (?:$Storage\s+)?(?:XA_STATE|XA_STATE_ORDER)\s*\(|
+ (?:MA_STATE)\s*\(
)};
our %allow_repeated_words = (
--
2.51.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-09 15:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-09 15:32 [PATCH v2 1/1] checkpatch: add MA_STATE to declaration_macros Jim Cromie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®