From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753341AbcIDOnv (ORCPT ); Sun, 4 Sep 2016 10:43:51 -0400 Received: from smtprelay0002.hostedemail.com ([216.40.44.2]:46936 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752469AbcIDOnt (ORCPT ); Sun, 4 Sep 2016 10:43:49 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:10004:10400:10848:11232:11658:11914:12740:13069:13161:13221:13229:13255:13311:13357:13439:13894:14659:14721:21080:30029:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: pen46_181156d651360 X-Filterd-Recvd-Size: 1578 Message-ID: <1473000163.5018.21.camel@perches.com> Subject: Re: [PATCH] checkpatch: Add a --strict test for macro argument reuse and precedence From: Joe Perches To: Andrew Morton , Andy Whitcroft Cc: Julia Lawall , Dan Carpenter , linux-kernel@vger.kernel.org Date: Sun, 04 Sep 2016 07:42:43 -0700 In-Reply-To: <5ef3db05b4021f41d313e265f4c9ebd259c808ee.1472940911.git.joe@perches.com> References: <20160903201847.GA4218@mwanda> <5ef3db05b4021f41d313e265f4c9ebd259c808ee.1472940911.git.joe@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2016-09-03 at 15:20 -0700, Joe Perches wrote: > Add a test for reuse of macro arguments to highlight any possible > side-effects from this reuse. > > Avoid this check on token name pasting and when the > argument is used in a typeof or a __builtin. > > Add a test for macro arguents that have leading or trailing operators > where the argument isn't parenthesized to avoid possible precedence > issues. > > These tests are noisy so make them --strict. This should have been RFC.  Please do not apply this. These tests are not just noisy, some false positives it reports are just silly.