diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e53df2b086b2..55277a8e1527 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -1678,6 +1678,8 @@ sub process { | |||
| 1678 | $linenr = 0; | 1678 | $linenr = 0; |
| 1679 | foreach my $line (@lines) { | 1679 | foreach my $line (@lines) { |
| 1680 | $linenr++; | 1680 | $linenr++; |
| 1681 | my $sline = $line; #copy of $line | ||
| 1682 | $sline =~ s/$;/ /g; #with comments as spaces | ||
| 1681 | 1683 | ||
| 1682 | my $rawline = $rawlines[$linenr - 1]; | 1684 | my $rawline = $rawlines[$linenr - 1]; |
| 1683 | 1685 | ||
| @@ -2194,7 +2196,7 @@ sub process { | |||
| 2194 | $realline_next); | 2196 | $realline_next); |
| 2195 | #print "LINE<$line>\n"; | 2197 | #print "LINE<$line>\n"; |
| 2196 | if ($linenr >= $suppress_statement && | 2198 | if ($linenr >= $suppress_statement && |
| 2197 | $realcnt && $line =~ /.\s*\S/) { | 2199 | $realcnt && $sline =~ /.\s*\S/) { |
| 2198 | ($stat, $cond, $line_nr_next, $remain_next, $off_next) = | 2200 | ($stat, $cond, $line_nr_next, $remain_next, $off_next) = |
| 2199 | ctx_statement_block($linenr, $realcnt, 0); | 2201 | ctx_statement_block($linenr, $realcnt, 0); |
| 2200 | $stat =~ s/\n./\n /g; | 2202 | $stat =~ s/\n./\n /g; |
