From patchwork Thu Feb 3 17:55:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 81693 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 75077B7113 for ; Fri, 4 Feb 2011 05:06:20 +1100 (EST) Received: from localhost ([127.0.0.1]:60822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl3ZP-0000kt-Nn for incoming@patchwork.ozlabs.org; Thu, 03 Feb 2011 13:06:15 -0500 Received: from [140.186.70.92] (port=49924 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl3Qq-0004tB-Ip for qemu-devel@nongnu.org; Thu, 03 Feb 2011 12:57:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl3Pe-0004dl-Mo for qemu-devel@nongnu.org; Thu, 03 Feb 2011 12:56:11 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:38111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl3Pe-0004dW-DU for qemu-devel@nongnu.org; Thu, 03 Feb 2011 12:56:10 -0500 Received: by pwj6 with SMTP id 6so367681pwj.4 for ; Thu, 03 Feb 2011 09:56:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=KjtvO5bAADx8rIY4Z8rJ+gq5hXEl6cIus3tJZjQTXr8=; b=lW86eo5FL5F/39Uwo7/fPnpbiZhqFzTsOnL5Im9vOe/97fiHTMa0s5fJ7SmDfOwXKl DsgNkhY6BtteN6XipHTGBMcke2riQxUIwezF0Jn9Ptz5nZOuUaKJ6gJX3rltVp/GnMXk VTL8tZHQVvJ9yXikK3e5D2c0+yPF1Pgsn1yzc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=aBwu0Om9dd0U+EK/bO/mmv6mncsa+4kzQZ0Rg1rJjLv71dLo65PKQL4ZZ8ptvJwQfN iyNVpdVRj0mqQg6QUj+Uw2NxmK1URwQyXOKNRfFv3zHp8Yg4dtyEV2/bF305oivGer2I mW68Opt7nSdKT1Ye1AONScPh+nYmwrwH2rzIA= Received: by 10.142.230.12 with SMTP id c12mr10502377wfh.289.1296755769412; Thu, 03 Feb 2011 09:56:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.52.1 with HTTP; Thu, 3 Feb 2011 09:55:49 -0800 (PST) From: Blue Swirl Date: Thu, 3 Feb 2011 17:55:49 +0000 Message-ID: To: Jan Kiszka , qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.45 Cc: Subject: [Qemu-devel] [PATCH] checkpatch.pl: don't complain about old lines with tabs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Don't complain when the patch includes lines with tabs only in the hunk's untouched context. Signed-off-by: Blue Swirl --- scripts/checkpatch.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4fa06c0..075b614 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;