From patchwork Thu May 4 19:23:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 98560 Delivered-To: patch@linaro.org Received: by 10.140.89.200 with SMTP id v66csp770464qgd; Thu, 4 May 2017 12:24:26 -0700 (PDT) X-Received: by 10.55.135.131 with SMTP id j125mr8965425qkd.58.1493925866864; Thu, 04 May 2017 12:24:26 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 57si2613354qtr.65.2017.05.04.12.24.26; Thu, 04 May 2017 12:24:26 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8455260A02; Thu, 4 May 2017 19:24:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id D75BB6084C; Thu, 4 May 2017 19:24:17 +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 79E6660880; Thu, 4 May 2017 19:24:12 +0000 (UTC) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by lists.linaro.org (Postfix) with ESMTPS id 20FDF60848 for ; Thu, 4 May 2017 19:24:01 +0000 (UTC) Received: by mail-io0-f171.google.com with SMTP id p80so33919673iop.3 for ; Thu, 04 May 2017 12:24:01 -0700 (PDT) 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=RVPeyIKLJf4AJbA3rQSMo96WCXq4JGnNh65yOvzCjl4=; b=r9494F/Cr87HUFfY4AdlcYT165d2z4y9ZAS5O9TfdQCrzjn836EipEMR+r3RcEgrRe ub5bwUFXv5dy7Zg7EhigFBYpIKQVyBgX23Yux3zZQf2p/vGGn+iGbJvT/EfAyFAQbWzk eBsF9Ri6fmcO4fkUAfLzZcbKhtttdMfhXH4kmBBRPX3nqABZiyhVR/sLK2zu71o2dTvL eF2TOMWKcI5rzIZjaUy0GpW3Xoa2bXWYbjG/kkvmhGAuyygV+0JeT4ED8voYQ39E6XH4 Bk2Wyv0x9VaPi41PPZ9MKinFSCfiWJs1uH6O6ncCu7bp/hC9cV7bwKeTKpr1Gc7tu9YQ CHWQ== X-Gm-Message-State: AN3rC/5AlrbLhss/a7FXe8zggY11mtrCAiWHsOUstGA/AkA4y4OttQbx CJbm7hkAevIvrXeisac= X-Received: by 10.157.13.67 with SMTP id 61mr15293768oti.204.1493925840547; Thu, 04 May 2017 12:24:00 -0700 (PDT) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id s64sm1505402oif.14.2017.05.04.12.23.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 12:23:59 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 4 May 2017 14:23:57 -0500 Message-Id: <20170504192357.2630-1-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [prefix=PATCH] scripts: checkpatch: update to allow additional exceptions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Update checkpatch.pl to avoid issuing warnings for use of externs, volatile, or camelCase. Signed-off-by: Bill Fischofer --- scripts/checkpatch.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.11.0 diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 16316b92..1c27ac60 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4273,7 +4273,7 @@ sub process { $camelcase_file_seeded = 1; } } - if (!defined $camelcase{$word}) { + if (!defined $camelcase{$word} && 0) { $camelcase{$word} = 1; CHK("CAMELCASE", "Avoid CamelCase: <$word>\n" . $herecurr); @@ -4620,7 +4620,7 @@ sub process { # no volatiles please my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b}; - if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) { + if ($line =~ /\bvolatile\b/ && 0 && $line !~ /$asm_volatile/) { WARN("VOLATILE", "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt\n" . $herecurr); } @@ -5134,7 +5134,7 @@ sub process { if (defined $cond) { substr($s, 0, length($cond), ''); } - if ($s =~ /^\s*;/ && + if ($s =~ /^\s*;/ && 0 && $function_name ne 'uninitialized_var') { WARN("AVOID_EXTERNS",