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:
327953e
)
checkpatch: Allow comments in macros tested for single statements
author
Joe Perches
<
[email protected]
>
Fri, 13 Feb 2015 22:38:32 +0000
(14:38 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 14 Feb 2015 05:21:39 +0000
(21:21 -0800)
Convert all the comments to spaces before testing for single statement
macros.
Reported-by: Valdis Kletnieks <
[email protected]
>
Signed-off-by: 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 6afc24ba77a6b067941c7b1b1223fdbe33c05c6a..6ac355edd0dc843c110c0aa316901afe7ebd6278 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-4260,6
+4260,7
@@
sub process {
$ctx = $dstat;
$dstat =~ s/\\\n.//g;
+ $dstat =~ s/$;/ /g;
if ($dstat =~ /^\+\s*#\s*define\s+$Ident\s*${balanced_parens}\s*do\s*{(.*)\s*}\s*while\s*\(\s*0\s*\)\s*([;\s]*)\s*$/) {
my $stmts = $2;