checkpatch: add MA_STATE to declaration_macros
PATCH v2 1/1 checkpatch: add MA_STATE to declaration_macros
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 <[email protected]>
Signed-off-by Jim Cromie <[email protected]>
---
v2 - fix broken closes link
--- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +2 -1
@@ -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 = (
Signature · 1 line
2.51.1