From patchwork Mon May 18 12:49:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 48683 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 E30D42121F for ; Mon, 18 May 2015 12:51:54 +0000 (UTC) Received: by wixv7 with SMTP id v7sf22738062wix.0 for ; Mon, 18 May 2015 05:51:54 -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:in-reply-to:references: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=qz08rTgpqktL5MTx13BP71TUPGbbUx3S62H0BpW+Pow=; b=hesuYlN2e4aYBh55eNeuoPQlLm0sg7KtN4CusT9/QDpfd9Pv8Wan6xwbXhQSOTYYSu 5bL8JFU/ufvH/E4vVtEvhKSD9S73gS0n58zTb+wfCeCaV6N4aRpl/0nEKRU//KlMO0Hq JM1KIx7+pKPd+m4GIDThd062az1wuqFIC4rpULiKtqUV6heBzUk1E+OPe853CkaiIWGL qvfEhn9KeAguNmmxj4b1T7/ONlDx7FxxvnwQguok9HAYwoOnj2aNSk7OJIdouQtfX+Ia rRai3S0XkZmqjLbZ2LhAv9XltgDYAyJuLQ1DQGFQ95tVhY1FANEZq052sB6V4w8jGmpw Vktw== X-Gm-Message-State: ALoCoQmaucd/QHdiFDUxs6IT2pLGL1HD0++CJVJjKmkPSBmkeqfet5Jq55rjKHEHp9c8BRNtoADa X-Received: by 10.194.202.229 with SMTP id kl5mr4321957wjc.3.1431953513917; Mon, 18 May 2015 05:51:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.100 with SMTP id j4ls764559lah.92.gmail; Mon, 18 May 2015 05:51:53 -0700 (PDT) X-Received: by 10.112.134.167 with SMTP id pl7mr17122550lbb.50.1431953513744; Mon, 18 May 2015 05:51:53 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id h3si6626971lbj.145.2015.05.18.05.51.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2015 05:51:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by labbd9 with SMTP id bd9so218451312lab.2 for ; Mon, 18 May 2015 05:51:53 -0700 (PDT) X-Received: by 10.152.2.227 with SMTP id 3mr17339064lax.73.1431953513629; Mon, 18 May 2015 05:51:53 -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 hn6csp62030lbb; Mon, 18 May 2015 05:51:50 -0700 (PDT) X-Received: by 10.55.41.68 with SMTP id p65mr46780079qkh.76.1431953503958; Mon, 18 May 2015 05:51:43 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l42si5740900qgl.9.2015.05.18.05.51.13; Mon, 18 May 2015 05:51:43 -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 9E34361CCA; Mon, 18 May 2015 12:51: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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 C2B2861811; Mon, 18 May 2015 12:49:34 +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 749F861B55; Mon, 18 May 2015 12:49:27 +0000 (UTC) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id CAA8761B40 for ; Mon, 18 May 2015 12:49:24 +0000 (UTC) Received: by labbd9 with SMTP id bd9so218342679lab.2 for ; Mon, 18 May 2015 05:49:23 -0700 (PDT) X-Received: by 10.152.45.40 with SMTP id j8mr17438004lam.79.1431953363661; Mon, 18 May 2015 05:49:23 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-163-142.pppoe.mtu-net.ru. [91.76.163.142]) by mx.google.com with ESMTPSA id j6sm2205332laj.13.2015.05.18.05.49.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 May 2015 05:49:22 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 18 May 2015 15:49:16 +0300 Message-Id: <1431953356-10242-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431953356-10242-1-git-send-email-maxim.uvarov@linaro.org> References: <1431953356-10242-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 2/2] checkpatch: use codespell for odp 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.215.53 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 checkpatch: use codespell for odp By default configure is looking for codespell installed. That check can be optionally turned off. Code spell can be used directly from command line or be used for checkpatch. For now it finds bunch of spelling issues: ./configure.ac:52: archetecture ==> architecture ./m4/ax_prog_doxygen.m4:24: seperate ==> separate ./m4/ax_prog_doxygen.m4:464: Seperate ==> Separate ./m4/ax_prog_doxygen.m4:465: seperate ==> separate ./doc/api_guide_lines.dox:93: addtion ==> addition ./doc/api_guide_lines.dox:153: begining ==> beginning ./scripts/checkpatch.pl:5262: preceeded ==> preceded ./platform/linux-generic/odp_timer.c:601: occurence ==> occurrence ./platform/linux-generic/odp_rwlock.c:52: aquired ==> acquired ./platform/linux-generic/odp_pool.c:164: paramters ==> parameters ./helper/ring.c:283: preceeded ==> preceded ./helper/include/odp/helper/ip.h:157: extention ==> extension ./example/ipsec/odp_ipsec_sa_db.h:17: Assocation ==> Association ./example/ipsec/odp_ipsec_sa_db.h:32: Assocation ==> Association ./example/generator/odp_generator.c:537: funtion ==> function ./include/odp/api/queue.h:44: lenght ==> length ./include/odp/api/queue.h:216: responsability ==> responsibility ./include/odp/api/init.h:158: dependant ==> dependent ./include/odp/api/crypto.h:113: paramters ==> parameters ./include/odp/api/crypto.h:136: peformed ==> performed ./include/odp/api/packet_io.h:67: becuase ==> because ./include/odp/api/pool.h:40: lenght ==> length ./test/validation/odp_cpumask.c:126: occured ==> occurred ./test/performance/odp_atomic.c:47: excercise ==> exercise Signed-off-by: Maxim Uvarov --- .checkpatch.conf | 1 + configure.ac | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.checkpatch.conf b/.checkpatch.conf index 9076410..17fcea6 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -2,3 +2,4 @@ --strict --ignore=NEW_TYPEDEFS --ignore=DEPRECATED_VARIABLE +--codespell diff --git a/configure.ac b/configure.ac index d20bad2..73bb97f 100644 --- a/configure.ac +++ b/configure.ac @@ -248,6 +248,26 @@ AC_CHECK_LIB([crypto], [EVP_EncryptInit], [], AC_CHECK_HEADERS([openssl/des.h openssl/rand.h openssl/hmac.h openssl/evp.h], [], [AC_MSG_ERROR([OpenSSL headers required])]) + +########################################################################## +# Check for Codespell tool +########################################################################## +AC_CHECK_PROG([CODESPELL], [codespell], [codespell]) +codespell_disabled=no +AC_ARG_ENABLE([codespell], + [AS_HELP_STRING([--disable-codespell], [Use codespell for checkpatch.])], + [case "$withval" in + no) ;; + yes) codespell_disabled=yes ;; + *) AC_MSG_ERROR([Bad value ${withval} for --disable-codespell.]) ;; + esac]) + +if test $codespell_disabled == "no" && test -z $CODESPELL +then + AC_MSG_ERROR([Codespell not found. apt-get install codespell or + use --disable-codespell]) +fi + ########################################################################## # Restore old saved variables ##########################################################################