Received: from eggs.gnu.org ([2001:4830:134:3::10]:46027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXPKV-0001N2-Vi for qemu-devel@nongnu.org; Wed, 10 Aug 2016 04:57:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXPKS-0006Ne-Sb for qemu-devel@nongnu.org; Wed, 10 Aug 2016 04:57:40 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48462 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXPKS-0006NW-N9 for qemu-devel@nongnu.org; Wed, 10 Aug 2016 04:57:36 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7A8sp4H132679 for ; Wed, 10 Aug 2016 04:57:36 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 24qm9qb9nh-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Aug 2016 04:57:35 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 10 Aug 2016 09:57:33 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9B1EC17D8042 for ; Wed, 10 Aug 2016 09:59:11 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u7A8vW5C32178376 for ; Wed, 10 Aug 2016 08:57:32 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u7A8vVK6026807 for ; Wed, 10 Aug 2016 02:57:31 -0600 Date: Wed, 10 Aug 2016 10:57:30 +0200 From: Cornelia Huck In-Reply-To: <1470817370-145190-2-git-send-email-pbonzini@redhat.com> References: <1470817370-145190-1-git-send-email-pbonzini@redhat.com> <1470817370-145190-2-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160810105730.6bba1a6f.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 1/5] checkpatch: tweak the files in which TABs are checked List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, thuth@redhat.com, armbru@redhat.com, famz@redhat.com On Wed, 10 Aug 2016 10:22:46 +0200 Paolo Bonzini wrote: > Include Python and shell scripts, and make an exception for Perl > scripts we imported from Linux or elsewhere. > > Signed-off-by: Paolo Bonzini > --- > scripts/checkpatch.pl | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 8d1813e..082c4ce 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -1334,7 +1334,7 @@ sub process { > } > > # check we are in a valid source file if not then ignore this hunk > - next if ($realfile !~ /\.(h|c|cpp|s|S|pl|sh)$/); > + next if ($realfile !~ /\.(h|c|cpp|s|S|pl|py|sh)$/); Do all of our checks work for python as well? > > #80 column limit > if ($line =~ /^\+/ && > @@ -1354,10 +1354,11 @@ sub process { > WARN("adding a line without newline at end of file\n" . $herecurr); > } > > -# check we are in a valid source file C or perl if not then ignore this hunk > - next if ($realfile !~ /\.(h|c|cpp|pl)$/); > +# tabs are only allowed in assembly source code, and in > +# some scripts we imported from other projects. > + next if ($realfile =~ /\.(s|S)$/); > + next if ($realfile =~ /(checkpatch|get_maintainer|texi2pod)\.pl$/); Looks reasonable. Do you plan to include the "skip header updates" patch as well? > > -# in QEMU, no tabs are allowed > if ($rawline =~ /^\+.*\t/) { > my $herevet = "$here\n" . cat_vet($rawline) . "\n"; > ERROR("code indent should never use tabs\n" . $herevet);