diff options
| author | Joe Perches <joe@perches.com> | 2015-09-09 18:37:33 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 16:29:01 -0400 |
| commit | 3e838b6c41e8ac86c992bdaaa78625faf528a578 (patch) | |
| tree | 2964260eb4ba5b82a859f4c4b562ffce6d31dfcb /scripts/checkpatch.pl | |
| parent | 9f5af480f4554aac12e002b6f5c2b04895857700 (diff) | |
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.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index ce305ff53aab..25314f37e79e 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -584,7 +584,7 @@ our $LvalOrFunc = qr{((?:[\&\*]\s*)?$Lval)\s*($balanced_parens{0,1})\s*}; | |||
| 584 | our $FuncArg = qr{$Typecast{0,1}($LvalOrFunc|$Constant|$String)}; | 584 | our $FuncArg = qr{$Typecast{0,1}($LvalOrFunc|$Constant|$String)}; |
| 585 | 585 | ||
| 586 | our $declaration_macros = qr{(?x: | 586 | 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*\(| |
| 588 | (?:$Storage\s+)?LIST_HEAD\s*\(| | 588 | (?:$Storage\s+)?LIST_HEAD\s*\(| |
| 589 | (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\( | 589 | (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\( |
| 590 | )}; | 590 | )}; |
