Received: from eggs.gnu.org ([2001:4830:134:3::10]:51470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXU6i-00027s-Bo for qemu-devel@nongnu.org; Wed, 10 Aug 2016 10:03:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXU6d-0000fR-9D for qemu-devel@nongnu.org; Wed, 10 Aug 2016 10:03:43 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:63544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXU6c-0000fF-Vc for qemu-devel@nongnu.org; Wed, 10 Aug 2016 10:03:39 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7ADxGZN094195 for ; Wed, 10 Aug 2016 10:03:38 -0400 Received: from e06smtp08.uk.ibm.com (e06smtp08.uk.ibm.com [195.75.94.104]) by mx0a-001b2d01.pphosted.com with ESMTP id 24qm9t8tun-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 10 Aug 2016 10:03:37 -0400 Received: from localhost by e06smtp08.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 10 Aug 2016 15:03:35 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id B2C0717D805F for ; Wed, 10 Aug 2016 15:05:11 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u7AE3VXk24314024 for ; Wed, 10 Aug 2016 14:03:31 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u7AE3Vo3022425 for ; Wed, 10 Aug 2016 08:03:31 -0600 Date: Wed, 10 Aug 2016 16:03:30 +0200 From: Cornelia Huck In-Reply-To: <20160809173841.716-1-rkrcmar@redhat.com> References: <20160809173841.716-1-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-Id: <20160810160330.3b66f363.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH] checkpatch: ignore automatically imported Linux headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Radim =?UTF-8?B?S3LEjW3DocWZ?= Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, thuth@redhat.com, famz@redhat.com, armbru@redhat.com On Tue, 9 Aug 2016 19:38:41 +0200 Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > Linux uses tabs for indentation and checkpatch always complained about > automatically imported headers. update-linux-headers.sh could be modifie= d to > expand tabs, but there is no real reason to complain about any ugly code = in > Linux headers, so skip all hunk-related checks. >=20 > Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 > --- > Line offset of the diff assumes that Paolo's "[PATCH 0/3] checkpatch twe= aks" > is applied first. Context remains the same, though. >=20 > scripts/checkpatch.pl | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 0f9ae512ae55..873a50292442 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -1312,6 +1312,9 @@ sub process { > # ignore non-hunk lines and lines being removed > next if (!$hunk_line || $line =3D~ /^-/); > =20 > +# ignore files that are being periodically imported from Linux > + next if ($realfile =3D~ /^(linux-headers|include\/standard-headers)\//= ); > + > #trailing whitespace > if ($line =3D~ /^\+.*\015/) { > my $herevet =3D "$here\n" . cat_vet($rawline) . "\n"; Acked-by: Cornelia Huck