Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754202AbbBTL4Y (ORCPT ); Fri, 20 Feb 2015 06:56:24 -0500 Received: from s1.neomailbox.net ([5.148.176.57]:16154 "EHLO s1.neomailbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753735AbbBTL4X (ORCPT ); Fri, 20 Feb 2015 06:56:23 -0500 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Cc: Joe Perches , linux-kernel@vger.kernel.org, Dan Carpenter Subject: Re: [B.A.T.M.A.N.] checkpatch: CHECK: No space is necessary after a cast Date: Fri, 20 Feb 2015 19:56:12 +0800 Message-ID: <7679509.IB7arj1Sb8@voltaire> User-Agent: KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) In-Reply-To: <1424375741.18211.4.camel@perches.com> References: <2621923.3aVJ40SYcy@voltaire> <1424375741.18211.4.camel@perches.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1729219.WsknuV7282"; micalg="pgp-sha256"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1513 Lines: 45 --nextPart1729219.WsknuV7282 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Thursday, February 19, 2015 11:55:41 Joe Perches wrote: > > Can you make a suggestion / patch for checkpatch to better handle this > > case ? > The "sizeof" test in the current script doesn't work. > > I believe the patch below works with no false positives > but it's perl regexes against odd coding styles > and weird macros, who knows for sure... > > I did run it against drivers/, net/ and include/ Your perl-regex-fu does the trick! Thanks, Marek --nextPart1729219.WsknuV7282 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJU5yDcAAoJEFNVTo/uthzAn3AIAIHu0D4OlH+tyWFp/ML0U8dx C6V2RJBlDrpfX4mL4lRgzVIbjnEoVnvX7u+F9gh1s9IVhI0CQg/R0mIdxg/U7QIF GkCwgarhdnrfJfeNpe8L4v8986HDH7oA0IKmGxMC1e/fOCO3QHaxMITuhqtlpOHP XWQC4q/wueVg4TXb5/AoVpi5YwsZL5nanCXTn1ILhhZ9u3JqjheWquO+4gCIApmL MSL+F1ZSLJXg0jHihiPEjffMcRPuNYPfFnZx1HLeTly7MYNvRWPXZbRpmzchpyw+ EoIKAW//Uo1HivXHYMKRCIg8aWnCQe7CzSIy09mr7iQsCZhgsxbo4uKXYrJ+tW0= =YdWc -----END PGP SIGNATURE----- --nextPart1729219.WsknuV7282-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/