summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBlue Swirl2011-02-05 14:18:20 +0100
committerBlue Swirl2011-02-05 14:18:20 +0100
commitad36ce8ba95a756ef558579c6e9ecedfae4dfd0b (patch)
treedfcec112b488db39e313b7694ad1721f9be78e1e /scripts
parenttarget-arm: Fix decoding of Thumb preload and hint space (diff)
downloadqemu-ad36ce8ba95a756ef558579c6e9ecedfae4dfd0b.tar.gz
qemu-ad36ce8ba95a756ef558579c6e9ecedfae4dfd0b.tar.xz
qemu-ad36ce8ba95a756ef558579c6e9ecedfae4dfd0b.zip
checkpatch.pl: don't complain about old lines with tabs
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 4fa06c002e..075b6149a3 100755
--- 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;