From patchwork Fri Nov 14 18:16:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 40850 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD836240ED for ; Fri, 14 Nov 2014 18:16:51 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id b13sf9369926wgh.10 for ; Fri, 14 Nov 2014 10:16:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=3/FvUdpboK+o4yBr+0KEHPnKuIzW3tWyj1KJoECyTB8=; b=XyW5Ya3Jgvvj32bsFz2peFP97jLF0thbO/q7jhMk7+JShKheMvETTPPvpPsEAjYn1P XyxWd8tmVlYP4Rgl85Lq0CK8RhygrTZ5jAwcO1wiCBm/DHpee55CNfqUXINk6tXm2DSx j/SY8yt7k5H3GlKkuaLKrKGcCKZmPBaEGkf8Zd90PO1Q893l1ksTr9rMiqBLV79Ge777 Gt8dJwCsEY0E+HnslINtX3yNn3SF3i8ftV8g82tzxCzd7y3G/atsDa6ev6qq7V3YpJGk Q40Ln0mqHQTErIgh8WcuKzt4Hvw8zRzp4faRRNqJav6W3xsEICGt4Scu2Gp8KUMvMc9c 6uzg== X-Gm-Message-State: ALoCoQnFiYWWzBi2sV3Ejxkzp5mqOT+sxsDwEHNO33INiU4z9UrXaeEHuhuuvTz9Nifb0NDGUiiG X-Received: by 10.181.12.37 with SMTP id en5mr1138662wid.6.1415989011029; Fri, 14 Nov 2014 10:16:51 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.121.72 with SMTP id li8ls1037275lab.101.gmail; Fri, 14 Nov 2014 10:16:50 -0800 (PST) X-Received: by 10.152.203.164 with SMTP id kr4mr9618428lac.31.1415989010861; Fri, 14 Nov 2014 10:16:50 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id y1si16767057laa.37.2014.11.14.10.16.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:16:50 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id q1so15609254lam.10 for ; Fri, 14 Nov 2014 10:16:50 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr9475899laz.27.1415989010641; Fri, 14 Nov 2014 10:16:50 -0800 (PST) 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.184.201 with SMTP id ew9csp810508lbc; Fri, 14 Nov 2014 10:16:49 -0800 (PST) X-Received: by 10.140.105.37 with SMTP id b34mr12918664qgf.91.1415989009263; Fri, 14 Nov 2014 10:16:49 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id u13si15267162qge.62.2014.11.14.10.16.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:16:49 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XpLQN-00052s-3j; Fri, 14 Nov 2014 18:16:47 +0000 Received: from mail-lb0-f178.google.com ([209.85.217.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XpLQG-00052f-Jk for lng-odp@lists.linaro.org; Fri, 14 Nov 2014 18:16:40 +0000 Received: by mail-lb0-f178.google.com with SMTP id f15so14585959lbj.37 for ; Fri, 14 Nov 2014 10:16:34 -0800 (PST) X-Received: by 10.152.29.41 with SMTP id g9mr3409462lah.83.1415988994742; Fri, 14 Nov 2014 10:16:34 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-121.2com.net. [46.188.125.121]) by mx.google.com with ESMTPSA id c10sm2487604lah.47.2014.11.14.10.16.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:16:33 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 14 Nov 2014 21:16:07 +0300 Message-Id: <1415988967-1113-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Topics: patch Subject: [lng-odp] [PATCHv3] checkpatch: remove cunit warnings X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org 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.51 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 CUnit names all it's functions with CU_. For check patch is is camelcase, which is not proper odp syntax. This patch turns off camelcase warnings for functions/types beginning with CU_. Signed-off-by: Maxim Uvarov Reviewed-by: Mike Holmes --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b954de5..57d0a24 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2940,6 +2940,7 @@ sub process { if ($var !~ /$Constant/ && $var =~ /[A-Z]\w*[a-z]|[a-z]\w*[A-Z]/ && $var !~ /"^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && + $var !~ /\bCU_/ && !defined $camelcase{$var}) { $camelcase{$var} = 1; WARN("CAMELCASE",