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:
e01886a
)
checkpatch: fix complex macros handling of square brackets
author
Andy Whitcroft
<
[email protected]
>
Tue, 10 Jan 2012 23:10:10 +0000
(15:10 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Jan 2012 00:30:51 +0000
(16:30 -0800)
Signed-off-by: Andy Whitcroft <
[email protected]
>
Cc: Joe Perches <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 5e3f4191f9596629cb1c72eddc4f313c9aeb8691..ba7bcf34ad01e6bdf1b5f20371782c421ec7d717 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-2815,7
+2815,7
@@
sub process {
# Flatten any parentheses and braces
while ($dstat =~ s/\([^\(\)]*\)/1/ ||
$dstat =~ s/\{[^\{\}]*\}/1/ ||
- $dstat =~ s/\[[^\
{\}
]*\]/1/)
+ $dstat =~ s/\[[^\
[\]
]*\]/1/)
{
}