Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp803743ybg; Wed, 10 Jun 2020 14:17:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6wUQkqcrlTCHCPK3G0EHH19N1vZmLufEkHsf1lkHdsval0et11byeKkOijSfaLCNZNPOc X-Received: by 2002:a17:906:768e:: with SMTP id o14mr5511673ejm.497.1591823831427; Wed, 10 Jun 2020 14:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591823831; cv=none; d=google.com; s=arc-20160816; b=Ve1NTIL9EsU3V+rOuhtV/XaRz+QjiDuTIpjO9t3GkFtPReLplKIfiEyj08HqClUALJ Q2XIt3xtvKgXeLO84UXgQgNPObpk6BJbdwWVCTmYTeCGPZ0OFj1RcbcXUJspbpPaYIqC U2tDaccgnV9k58gSJTpX2GrihIBBodu3mhIx42Vzohzqsgy/rPchUzE+pNKvSp1U7XFB 4E1So3qIkZSItb+koUxLq7jwsS21rJGFpfBUvHuNmcUP/JBzFI+QMzxeMFYgG6RB9QkL XLwcW72E2DChWIGuw7aAcmGPA6IrNknObagrQPf0OlUXGYPbO+XBx8cpQUqiBMfravFR ORuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=kTEHSIu7klUKABehYePkNg8crJC7ywrJMw3dXsMlmG4=; b=VRWLlPSG3/677kZzFu2ztkroWY16mKcBoEacqJrzhLsFWQVNHS6CJYGHT5khrIHbVw Qw3jUWE/KYCk4geZL8giqZ56jPXVBCPl0kbpxSdHyy7VsP95Z6NzNiOl+sXa0EJX4W1l yMooDQWMGUNTA4QyOuWCrtUz4FFS1RW9qIdSrJ56QLqHUERtc9Am1hlIjrOYDs9K+Q5C +JNj6wFvwGLamhSCrBaxrtj4q47nNXlEGQFAVqYBZ4g28hK62Jyl2B5k1DPcrtLlr7j6 xhDZ3bd0oIbUFVqX1rxXAKw68lXnmGeC0MzE+r/73SktZtqsOAwapo9WroGNkhG/264z laSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si409154edx.555.2020.06.10.14.16.49; Wed, 10 Jun 2020 14:17:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726523AbgFJVJ4 (ORCPT + 99 others); Wed, 10 Jun 2020 17:09:56 -0400 Received: from smtprelay0202.hostedemail.com ([216.40.44.202]:46734 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726327AbgFJVJ4 (ORCPT ); Wed, 10 Jun 2020 17:09:56 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id B460918074CAA; Wed, 10 Jun 2020 21:09:55 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3868:4250:4321:5007:8603:8957:10004:10400:10848:11026:11232:11658:11914:12043:12297:12438:12555:12740:12760:12895:12986:13069:13311:13357:13439:14181:14659:14721:21080:21451:21627:30054:30064:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: crate24_3c11eaa26dce X-Filterd-Recvd-Size: 1924 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Wed, 10 Jun 2020 21:09:54 +0000 (UTC) Message-ID: <1b2d9ead79a5a035a287b7ecba8655b2c633d5cd.camel@perches.com> Subject: Re: [PATCH] checkpatch: ignore CamelCase for inttypes.h format specifiers From: Joe Perches To: Scott Branden , Andy Whitcroft Cc: BCM Kernel Feedback , linux-kernel@vger.kernel.org Date: Wed, 10 Jun 2020 14:09:53 -0700 In-Reply-To: <20200610203307.9344-1-scott.branden@broadcom.com> References: <20200610203307.9344-1-scott.branden@broadcom.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-06-10 at 13:33 -0700, Scott Branden wrote: > Ignore CamelCase for inttypes.h for fixed integer types format specifiers. > (ex. PRIx32 for uint32_t). Personally, I don't like those. > Signed-off-by: Scott Branden > --- > scripts/checkpatch.pl | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 899e380782c0..9fa90457b270 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -5157,6 +5157,8 @@ sub process { > $var =~ /[A-Z][a-z]|[a-z][A-Z]/ && > #Ignore Page variants > $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && > +#Ignore inttypes.h scanf/printf format specifiers for fixed size integer types > + $var !~ /^(?:PRI|SCN)[dxoui](8|16|32|64|PTR|MAX)?$/ && > #Ignore SI style variants like nS, mV and dB > #(ie: max_uV, regulator_min_uA_show, RANGE_mA_VALUE) > $var !~ /^(?:[a-z0-9_]*|[A-Z0-9_]*)?_?[a-z][A-Z](?:_[a-z0-9_]+|_[A-Z0-9_]+)?$/ &&