History

checkpatch: Allow longer declaration macros

Some really long declaration macros exist. For instance; DEFINE_DMA_BUF_EXPORT_INFO(exp_info); and DECLARE_DM_KCOPYD_THROTTLE_WITH_MODULE_PARM(name, description) Increase the limit from 2 words to 6 after DECLARE/DEFINE uses.

Joe Perches committed 11 years ago

Commit 3e838b61 parent 9f5af481 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -584,7 +584,7 @@ our $LvalOrFunc = qr{((?:[\&\*]\s*)?$Lval)\s*($balanced_parens{0,1})\s*}; · 583 unmodified lines
584584 our $FuncArg = qr{$Typecast{0,1}($LvalOrFunc|$Constant|$String)};
585585
586586 our $declaration_macros = qr{(?x:
587− (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,2}\s*\(|
587+ (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(|
588588 (?:$Storage\s+)?LIST_HEAD\s*\(|
589589 (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\(
590590 )};