From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753778AbcKPOee (ORCPT ); Wed, 16 Nov 2016 09:34:34 -0500 Received: from smtprelay0105.hostedemail.com ([216.40.44.105]:52992 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751564AbcKPOeb (ORCPT ); Wed, 16 Nov 2016 09:34:31 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 75,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2197:2199:2393:2559:2562:2828:2902:3138:3139:3140:3141:3142:3352:3622:3653:3866:3868:4321:4605:5007:10004:10400:10848:11232:11658:11914:12043:12555:12740:12760:13069:13311:13357:13439:14181:14659:14721:21080:21221:30012:30051:30054:30064:30070:30091,0,RBL:112.65.189.172-orl.urbl.hostedemail.com-127.0.0.175,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:5,LUA_SUMMARY:none X-HE-Tag: cat78_7e544f4f92615 X-Filterd-Recvd-Size: 1838 Message-ID: <1479306861.17487.0.camel@perches.com> Subject: Re: [PATCH] checkpatch: don't check c99 types like uint8_t under tools From: Joe Perches To: Tomas Winkler , Andy Whitcroft , Andrew Morton Cc: linux-kernel@vger.kernel.org Date: Wed, 16 Nov 2016 06:34:21 -0800 In-Reply-To: <1479286379-853-1-git-send-email-tomas.winkler@intel.com> References: <1479286379-853-1-git-send-email-tomas.winkler@intel.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2016-11-16 at 10:52 +0200, Tomas Winkler wrote: > Tools contains user space code so uintX_t types are just fine. > > Signed-off-by: Tomas Winkler > --- > scripts/checkpatch.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index a8368d1c4348..42c3221be6eb 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -5548,8 +5548,9 @@ sub process { > "Using weak declarations can have unintended link defects\n" . $herecurr); > } > > -# check for c99 types like uint8_t used outside of uapi/ > +# check for c99 types like uint8_t used outside of uapi/ and tools/ > if ($realfile !~ m@\binclude/uapi/@ && > + $realfile !~ m@\btools/@ && > $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) { > my $type = $1; > if ($type =~ /\b($typeC99Typedefs)\b/) { Makes sense, thanks. Acked-by: Joe Perches