Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp821108ybg; Wed, 10 Jun 2020 14:52:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBwwUhwaOyZkZdYMN6YBwa9hY5UB8P6SYz4zQi65Edh2cp4oIclQnooLe5Gf9xuDScOO/n X-Received: by 2002:a17:906:3cf:: with SMTP id c15mr5258290eja.186.1591825949377; Wed, 10 Jun 2020 14:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591825949; cv=none; d=google.com; s=arc-20160816; b=BQ1UG1uVXUJFP37vnpR+PlsBEAt1QdTsZbNPBf6WRMrhlABRRl5szCDvnyyiusRWiP 0ZnNGZVALm8cqfW1Y9p59FgCCMWDGULYbcsvgIoLQorTAqI57tU6dO99U0B7+1YlsQIU e7pEo9nYWFbtp3Vdx6mM6n1wS3TyIUH47TZKxVD29AzsoGHrxPP2EOvmVBuPabWdD0hl wRpuErQV0tgUoaC/+2rFCFPOdlXdley+vhu5YAdyZdWWrZLVYLNdBYvl25JUtJDp8Bis JfHi+SY309VzUfqmJNxaDGnisalOlwAtwGZxQwV1KFiqCEgts/K7HxE6e7luCcntJMx+ Svwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Lqq2SqvcCq2mUx2FIpqozpsurS1CyxZsch8dOA0a4hs=; b=EgrYrA+OLLUK8L3ZI5OolatdaBBH1uevRpdcpH5RX/IKgRQ4XscdHuU8SMFGnm1wRa 9ihB5e6XZ7KZ5fYaamTJ9e3BYDUSvidIalWJShd9E+sw4umf2RMm1Mpbu+39DNYqsLqP VOqghh3LWi5SRC41mkzN0KHeObji4kVGfzAWWxbBRSj/akPtwwpsVWvSAuwGNhxI2u7U TXctUVJYxDJSgoexCN8GJcW3+Sbjmk9dCTuJzLZoKOR31OHbqKHlH9OkDXOAjfBAVQTw 0kHLe2gGfxAep7ajkmT2h/7K6ZQoYAZDBCmCklxyzJiaaUH7rxbzkc7IC2lg1xDsL/41 9vHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=hYeA7maS; 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 e23si724731ejb.425.2020.06.10.14.52.06; Wed, 10 Jun 2020 14:52:29 -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=hYeA7maS; 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 S1726456AbgFJVsN (ORCPT + 99 others); Wed, 10 Jun 2020 17:48:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbgFJVsN (ORCPT ); Wed, 10 Jun 2020 17:48:13 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 366CFC03E96B for ; Wed, 10 Jun 2020 14:48:13 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id s135so904751pgs.2 for ; Wed, 10 Jun 2020 14:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Lqq2SqvcCq2mUx2FIpqozpsurS1CyxZsch8dOA0a4hs=; b=hYeA7maSY98GNKcEpgCaA2nDzq4Nu88P3KOy9wNdovKUcxwkoGcifhKXEC5uSAjeOW VfBEZ1Qn1sgSizdsAQFZLwXzkMMDLCz1DdyaMaljGCbQpheK6krycJ/tDafzMI9GAtae 01hZMTXAez6QT3jNZ/mZwZPE6zgIq1vL/TGpA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Lqq2SqvcCq2mUx2FIpqozpsurS1CyxZsch8dOA0a4hs=; b=aElz1ZJakTczK4oq7SgntsoPfCCixLpYAWKl/ulzNEWjntFko+aQQcUlaBV8JNk0oE uqf63K0TQLdtI+/8PNzgxKDWp/UsD0+Jl/ydsEctB/iF0j2owYmeuU8+atIznhO1kEBX DrSOu2kKOqMluAmwc85hwlklzlcjrnEFqFMjBdc55ZuUo0vgo62oFfDM0OYTyCCxZzOi 5/dkBp1CaT2MahadUWyV5mJ6nnNE5GuAhP5J2NE6X9VUrn5S0dqcWKj/2f64SI0c9vo2 cy7qRFNBdwMx/znriLQZta62n4UmEIb4qyo5Uc9mdDFmUv29j+m6E6coYxn7btksmlMq YioA== X-Gm-Message-State: AOAM532x0UpP9zmeMQFrwvWgOCnqQU9ZVe9XuoNb4eNSlXwJDnxKWXTh 89LtMCtfthQaTEnZSlKAQHgsTfIJza8qx/qGJJzhjTIhE8WdgpUl6Ez+zs/0P1AfAcJDBlBlKTU IKKicXwowYJIf9YWq+Yr4JFbMTEwvftP8dWznLGtWwltBLQgR2TI+DDG5xsCik6dvV/5Sh8bCEv BLEXndmbDkTQE= X-Received: by 2002:aa7:8141:: with SMTP id d1mr4657001pfn.209.1591825691979; Wed, 10 Jun 2020 14:48:11 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id l83sm869633pfd.150.2020.06.10.14.48.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jun 2020 14:48:11 -0700 (PDT) Subject: Re: [PATCH] checkpatch: ignore CamelCase for inttypes.h format specifiers To: Joe Perches , Andy Whitcroft Cc: BCM Kernel Feedback , linux-kernel@vger.kernel.org References: <20200610203307.9344-1-scott.branden@broadcom.com> <1b2d9ead79a5a035a287b7ecba8655b2c633d5cd.camel@perches.com> From: Scott Branden Message-ID: Date: Wed, 10 Jun 2020 14:48:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <1b2d9ead79a5a035a287b7ecba8655b2c633d5cd.camel@perches.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-10 2:09 p.m., Joe Perches wrote: > 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. Checkpatch is run against a lot of code outside of the linux kernel but following linux coding style. There is nothing personal about this, they are the format specifiers in inttypes.h for fixed width types . > >> 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_]+)?$/ &&