projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea15fb0
)
checkpatch: Fix bracing false positives on #if
author
Blue Swirl
<blauwirbel@gmail.com>
Fri, 15 Jul 2011 20:09:10 +0000
(20:09 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Wed, 20 Jul 2011 21:07:24 +0000
(21:07 +0000)
789f88d0b21fedfd4251d56bb7a9fbfbda7a4ac7
only fixed #else,
fix also #if.
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 70a2111d197a4bcb061520422bc3fd03257e19de..3498425fff68fe48292df2115177deb97e3bbb3d 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-2539,6
+2539,7
@@
sub process {
}
if (!defined $suppress_ifbraces{$linenr - 1} &&
$line =~ /\b(if|while|for|else)\b/ &&
+ $line !~ /\#\s*if/ &&
$line !~ /\#\s*else/) {
my $allowed = 0;