From patchwork Thu May 4 19:33:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 98561 Delivered-To: patch@linaro.org Received: by 10.140.89.200 with SMTP id v66csp774551qgd; Thu, 4 May 2017 12:33:38 -0700 (PDT) X-Received: by 10.55.15.143 with SMTP id 15mr8948379qkp.44.1493926418310; Thu, 04 May 2017 12:33:38 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e5si2519314qtc.249.2017.05.04.12.33.37; Thu, 04 May 2017 12:33:38 -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 BA04660A35; Thu, 4 May 2017 19:33:37 +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=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 CA76860880; Thu, 4 May 2017 19:33:28 +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 9B2866095C; Thu, 4 May 2017 19:33:23 +0000 (UTC) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by lists.linaro.org (Postfix) with ESMTPS id 5601160655 for ; Thu, 4 May 2017 19:33:19 +0000 (UTC) Received: by mail-it0-f48.google.com with SMTP id o5so7740672ith.1 for ; Thu, 04 May 2017 12:33:19 -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=TUG0wGOP1A69cPkazZKPupZQosxHBqWUOVu+7fgJl6ODq5SqJlRdxa7l0foC7SIbMP 28Ur4Sp96uVr//44QaQnSP5vENLTG1qPaZmKBVD8N5E+5fuAUSoIvQdPR+Z5GjGBiQRQ /Wo1J2tK9coBdXlZQYIVig5z8UqXWWvFYst7zPk22CGh+eO5BvJGQZ9Ky5A9hnrl9JkS SCRW2GkZuDb4R0htmnk7ANjDxo9kyF21qQLzub0XjFN3VwI97jeTi46zVxSR1fVnkqXY 7Y/ynij6AcO7s2L+MSyMyz4DpN/PGuksvMW41q7yLvlnFUlR4CPf8TGVevtghEdPKg+f WeLA== X-Gm-Message-State: AN3rC/4vTlTE62vkiB310X8Dp2/vQFlEfQroPTZXiRoBCme38wNCVxuY qEGaK2PpVq7xuL4Cy3g= X-Received: by 10.202.79.7 with SMTP id d7mr6722921oib.55.1493926398876; Thu, 04 May 2017 12:33:18 -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 u23sm1488242otg.31.2017.05.04.12.33.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 12:33:18 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 4 May 2017 14:33:14 -0500 Message-Id: <20170504193314.4549-1-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [PATCHv2] 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",