Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp781491ybg; Wed, 10 Jun 2020 13:35:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCexSyBBesrbDUkgfK8/MjHSvwQ4oGotupkjIWaMJLAf0D2osVcjSywtzVf5YfsLydivHw X-Received: by 2002:a17:906:d8bc:: with SMTP id qc28mr5440824ejb.167.1591821334049; Wed, 10 Jun 2020 13:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591821334; cv=none; d=google.com; s=arc-20160816; b=mfUPleH1XTTdTVuxuK8IUVx+z5GbEpMJfQBVwlMB+UNb1Rc19ZI8ibB2CCisLJ/rxh 0MPvIob/eAmypJOxSi1Vp9+wh3/7SSBOD40qgon7S6KkB459Rnfqla2xICjUkhI9+KOq zIrQCr6Hk9VB5UubnRxJSZ+KbvxPaUszGi65/TgSG9Q4m82TM1HvFzrlhjFaHUSqQ+e0 A96aMUdacy6qyz9iuOcEws/T81EPfvIG2y9V2dKw1Eux5e3Qn55D5oiNB+9XyOScCXpw yaEd33+hZ91TjK08ButqgrL0ULUBpwa4656kXf3RNgw/8uKMD7ML1WsZjaUbdUSDbhow Pd4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Vsa1hMUPNb5WCHvsXvWB/06k71eACWwpCirDs+9Q+FM=; b=ejC1p32sUEvkilF9xKKtLtvTDMsB92lwMoVsVNbOFy3wcM0I8O2oQzxzEZLGCKzEnI sCi6IJwSR7IOu8orESi7GokOuzY8j7fIjiXbnNI2DZdBbI7Vu3NTbZQ8A2zyE/ckYCyJ 4C1MWU1zaUjd4tlksqclR9quasR0DjjbPoBTHs8c0+Ne97xbMufxqP5Ymz1k1p9x89+A nLbFxZQyNcIgpXVGSLTcaewrI2srxIIEYIKfBz387t+g4VajFKhuuoIcsyYMNZqaWmth 0tCHSeOa40YoPZDW8QPz/6XsaoJzRVO/bYbMgUinqa92ZrUOaPSRYDjpqoxCpIOcknWH UJoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=cABCKH2x; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mj14si648096ejb.464.2020.06.10.13.35.10; Wed, 10 Jun 2020 13:35:34 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=cABCKH2x; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726277AbgFJUdX (ORCPT + 99 others); Wed, 10 Jun 2020 16:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbgFJUdW (ORCPT ); Wed, 10 Jun 2020 16:33:22 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AAB5C03E96B for ; Wed, 10 Jun 2020 13:33:22 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id t16so1408454plo.7 for ; Wed, 10 Jun 2020 13:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=Vsa1hMUPNb5WCHvsXvWB/06k71eACWwpCirDs+9Q+FM=; b=cABCKH2xY/5m+HB+J5wdt32ctH/anKH8qbucZqqdDAF1yt0SO3TLAqxYkmDuCPkXDp 2p9nYKQeYePorQSVI2AZdF9aLMGDTbcBdseOqIahf0OZkIhiqq1U872YMfVXacnEywd3 OD2owJMMD644tyy37Nh1FqyL6/T31RgvlvZCg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Vsa1hMUPNb5WCHvsXvWB/06k71eACWwpCirDs+9Q+FM=; b=qjeJxEtC1LJDueJRJYNJqhS6e8BtrsE+IzPr/Dnx2j3DTjh+lXwytJYms2pBz/dsFZ 9iesDqvVCew3ODOpSbMWqtVSg2Mekju6gkiob1zQER1BQkC0YY99Irjv3t5YbW2JCv8Q m0y6+PEctUPayRID2uU70J5jimDimE1xPi6I4XxFBgyh5LAhfYRzRMq5GVyQFbozx7BG yegvhFRPSD/QrBYWhLUhZ11PCwxzgJRqWHVG5493CQdWy5mkG0EkPn4ZqQTPLxY3mBaE t+BXYTEFVvY9QwlUxvkE15o2B65jQWi503h0Adyk9Dt0tzotmi9LTa0ZIHorjNsQFRf9 5YYg== X-Gm-Message-State: AOAM533Mz1KYAo92NZt3VzzhTB6W26AAmk2MgxLpVWlbo1OcUAdmXn/l OkanR0su4aCzechxW8Qv8UVUSw5s8dGqNx7X X-Received: by 2002:a17:90b:3d1:: with SMTP id go17mr4594186pjb.114.1591821201738; Wed, 10 Jun 2020 13:33:21 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id x1sm576136pju.3.2020.06.10.13.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 13:33:20 -0700 (PDT) From: Scott Branden To: Andy Whitcroft , Joe Perches Cc: BCM Kernel Feedback , linux-kernel@vger.kernel.org, Scott Branden Subject: [PATCH] checkpatch: ignore CamelCase for inttypes.h format specifiers Date: Wed, 10 Jun 2020 13:33:07 -0700 Message-Id: <20200610203307.9344-1-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ignore CamelCase for inttypes.h for fixed integer types format specifiers. (ex. PRIx32 for uint32_t). 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_]+)?$/ && -- 2.17.1