From patchwork Tue Jun 2 15:03:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 49409 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2817F20BD1 for ; Tue, 2 Jun 2015 15:03:19 +0000 (UTC) Received: by wiam3 with SMTP id m3sf20209348wia.3 for ; Tue, 02 Jun 2015 08:03:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=neVN7XJALlXvmd6NceAXWwk/sxaKd+QUcE7KT2DLaaQ=; b=ZJn4PwObuwbiy7x7+Qu65SSXKpPdl6Hbx9dniocEP4swQpoRPIgMOPuwEFON8J4ZYy GDhBzM1WOMo6JXMc4zyN0gIcuyLhjfLQM0TqulPdZCiRkkfgAVgGxW2lTVqtHCMwgNSb s5fqdvKn3V6tT/R7R25V35PgnHGOq6tJbv/Kv7LbZeHQVHgxqBdFB28eET9jqnocrvCI n2IROaEXxP6IQmWCVmrH26T84a91yenFFHwgoR5K7i6zkOzZZE+SleMWaCXycZu0IZt+ vWdyI2L/OGj5jKc8SPH/NVjOawwWE0Buz0HP3BHJoV/WE32Rgc2M2nYG3yWQA7++btyI nNCQ== X-Gm-Message-State: ALoCoQmTHTWEDf3vOYoEi9iUUekRO8vauetnNcQDqANxMSsE1bcKIC/aL3JERmb8JNu/8Dt/XImi X-Received: by 10.112.122.13 with SMTP id lo13mr12114909lbb.5.1433257398437; Tue, 02 Jun 2015 08:03:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.168 with SMTP id kz8ls660228lac.105.gmail; Tue, 02 Jun 2015 08:03:18 -0700 (PDT) X-Received: by 10.152.204.7 with SMTP id ku7mr26594911lac.38.1433257398252; Tue, 02 Jun 2015 08:03:18 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id y5si15293578lay.123.2015.06.02.08.03.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 08:03:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbcmx3 with SMTP id mx3so106347057lbc.1 for ; Tue, 02 Jun 2015 08:03:18 -0700 (PDT) X-Received: by 10.112.150.167 with SMTP id uj7mr19118217lbb.112.1433257398141; Tue, 02 Jun 2015 08:03:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3137610lbb; Tue, 2 Jun 2015 08:03:15 -0700 (PDT) X-Received: by 10.55.50.141 with SMTP id y135mr41367839qky.91.1433257394560; Tue, 02 Jun 2015 08:03:14 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k86si15981888qkh.67.2015.06.02.08.03.13; Tue, 02 Jun 2015 08:03:14 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 996A061ED8; Tue, 2 Jun 2015 15:03:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 8840B61E1F; Tue, 2 Jun 2015 15:03:10 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 5B6AA61E4A; Tue, 2 Jun 2015 15:03:09 +0000 (UTC) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by lists.linaro.org (Postfix) with ESMTPS id 2C60161E09 for ; Tue, 2 Jun 2015 15:03:08 +0000 (UTC) Received: by wgme6 with SMTP id e6so142483901wgm.2 for ; Tue, 02 Jun 2015 08:03:07 -0700 (PDT) X-Received: by 10.180.86.198 with SMTP id r6mr32138927wiz.70.1433257387271; Tue, 02 Jun 2015 08:03:07 -0700 (PDT) Received: from localhost.localdomain ([149.62.201.13]) by mx.google.com with ESMTPSA id q4sm11126946wju.14.2015.06.02.08.03.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jun 2015 08:03:06 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 2 Jun 2015 18:03:00 +0300 Message-Id: <1433257380-10817-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] checkpatch: do not warn on Camel case for printf PRIx macro X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Maxim Uvarov Reviewed-by: Mike Holmes --- scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index bc13831..ca60292 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4255,6 +4255,8 @@ sub process { $var !~ /^(?:[a-z_]*?)_?[a-z][A-Z](?:_[a-z_]+)?$/ && #Ignore some three character SI units explicitly, like MiB and KHz $var !~ /\bCU_/ && + $var !~ /\bPRI[diux]32/ && + $var !~ /\bPRI[diux]64/ && $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) { while ($var =~ m{($Ident)}g) { my $word = $1;