projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0018046
)
checkpatch: improve the TABSTOP test to include declarations
author
Joe Perches
<joe@perches.com>
Tue, 6 Feb 2018 23:38:59 +0000
(15:38 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:45 +0000
(18:32 -0800)
Declarations should start on a tabstop too.
Link:
http://lkml.kernel.org/r/1b5f97673f36595956ad43329f77bf1a5546d2ff.1513976662.git.joe@perches.com
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>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 51905634be23bdf0c5515732b75cbe3f93a92c88..d2464058ab5d7222b1d097ed2263a4ccf9a16f85 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-3020,7
+3020,7
@@
sub process {
# check indentation starts on a tab stop
if ($^V && $^V ge 5.10.0 &&
- $sline =~ /^\+\t+( +)(?:$c90_Keywords\b|\{\s*$|\}\s*(?:else\b|while\b|\s*$))/) {
+ $sline =~ /^\+\t+( +)(?:$c90_Keywords\b|\{\s*$|\}\s*(?:else\b|while\b|\s*$)
|$Declare\s*$Ident\s*[;=\[]
)/) {
my $indent = length($1);
if ($indent % 8) {
if (WARN("TABSTOP",