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:
a2fdc89
)
checkpatch.pl: don't complain about old lines with tabs
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 5 Feb 2011 13:18:20 +0000
(13:18 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 5 Feb 2011 13:18:20 +0000
(13:18 +0000)
Don't complain when the patch includes lines with tabs
only in the hunk's untouched context.
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 4fa06c002ec14d10f26dbd8a3410018056a2dc49..075b6149a3dc21cb4abff4b4a04a08bce967e159 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-1495,7
+1495,7
@@
sub process {
next if ($realfile !~ /\.(h|c|pl)$/);
# in QEMU, no tabs are allowed
- if ($rawline =~ /\t/) {
+ if ($rawline =~ /
^\+.*
\t/) {
my $herevet = "$here\n" . cat_vet($rawline) . "\n";
ERROR("code indent should never use tabs\n" . $herevet);
$rpt_cleaners = 1;