From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58187 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pl74I-00039v-Nc for qemu-devel@nongnu.org; Thu, 03 Feb 2011 16:50:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pl747-0006qn-0l for qemu-devel@nongnu.org; Thu, 03 Feb 2011 16:50:16 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:42844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pl746-0006qe-Je for qemu-devel@nongnu.org; Thu, 03 Feb 2011 16:50:10 -0500 Message-ID: <4D4B2310.5090803@web.de> Date: Thu, 03 Feb 2011 22:50:08 +0100 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8C040CCCB11E1F3146FA51F8" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: [PATCH] checkpatch.pl: don't complain about old lines with tabs List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8C040CCCB11E1F3146FA51F8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2011-02-03 18:55, Blue Swirl wrote: > Don't complain when the patch includes lines with tabs > only in the hunk's untouched context. >=20 > Signed-off-by: Blue Swirl > --- > scripts/checkpatch.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >=20 > 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)$/); >=20 > # in QEMU, no tabs are allowed > - if ($rawline =3D~ /\t/) { > + if ($rawline =3D~ /^\+.*\t/) { > my $herevet =3D "$here\n" . cat_vet($rawline) . "\n"; > ERROR("code indent should never use tabs\n" . $herevet); > $rpt_cleaners =3D 1; > -- 1.6.2.4 Works perfectly now. Thanks, Jan --------------enig8C040CCCB11E1F3146FA51F8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk1LIxAACgkQitSsb3rl5xTjrwCghd93/HscZncwX3ICt5Cb37uM 2zcAoLy8PN1EX7/ckY+vlPBNV/TQYJKJ =E/hI -----END PGP SIGNATURE----- --------------enig8C040CCCB11E1F3146FA51F8--