From patchwork Fri Nov 14 18:13:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 40848 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A0AF1240ED for ; Fri, 14 Nov 2014 18:14:08 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf11029024eek.9 for ; Fri, 14 Nov 2014 10:14:07 -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=sJGnYPsOSOa1BHfNkSbnQW9ITaqjOi1l9HuY7fLeRhw=; b=XHA+D2W2MoCuOPagIgbpgcL6bLm/SmXPu4lfNDSNSv7InAO2mj3nyMnELPr5/OXLCX tdZ9acKq/AXSvebwQeYC08m2HA1j8Uz34hf5VjZhdMS9LriXgP+LsMzMbSjwUnVVIH91 vQpAsEXYW+HrXTgDVdYQ2HLDU/+fR9rhFX17OSi7Ztn6utk41WM3lmuIsVcg413CgAnm 1d8bgiVVtHImMr3OHhnsEMCKYJhYOhZrGB5QmXfOF2aO2TSy8uBE6GcJszQMhV1fXB5D taMJUyF4wGDSYruUoUOzdg28xT48npSN355AXOVSgdtGznXKEJ3p2YAohVOzDcVJ3SAc OrKg== X-Gm-Message-State: ALoCoQl0fK7w4mJc3415scOM72KwMScf8wsPwgo9LPzgmQR5bJzkKYrMJrFJGvPt7ttiV7Ydp7wT X-Received: by 10.112.217.102 with SMTP id ox6mr33233lbc.19.1415988847796; Fri, 14 Nov 2014 10:14:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.226 with SMTP id r2ls1113073lal.49.gmail; Fri, 14 Nov 2014 10:14:07 -0800 (PST) X-Received: by 10.112.146.162 with SMTP id td2mr3668443lbb.40.1415988847653; Fri, 14 Nov 2014 10:14:07 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id l2si42524003lbc.48.2014.11.14.10.14.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:14:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id f15so14273866lbj.41 for ; Fri, 14 Nov 2014 10:14:07 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr9664849lbc.34.1415988847504; Fri, 14 Nov 2014 10:14:07 -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 ew9csp810090lbc; Fri, 14 Nov 2014 10:14:06 -0800 (PST) X-Received: by 10.194.171.201 with SMTP id aw9mr16293750wjc.67.1415988846604; Fri, 14 Nov 2014 10:14:06 -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 pl10si4672470wic.91.2014.11.14.10.14.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:14:06 -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 1XpLNj-0004tw-7P; Fri, 14 Nov 2014 18:14:03 +0000 Received: from mail-lb0-f180.google.com ([209.85.217.180]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XpLNc-0004sl-8T for lng-odp@lists.linaro.org; Fri, 14 Nov 2014 18:13:56 +0000 Received: by mail-lb0-f180.google.com with SMTP id z11so6334881lbi.25 for ; Fri, 14 Nov 2014 10:13:50 -0800 (PST) X-Received: by 10.152.6.228 with SMTP id e4mr9568474laa.71.1415988830292; Fri, 14 Nov 2014 10:13:50 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-121.2com.net. [46.188.125.121]) by mx.google.com with ESMTPSA id xn9sm8373101lbb.25.2014.11.14.10.13.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:13:49 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 14 Nov 2014 21:13:42 +0300 Message-Id: <1415988822-913-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] [PATCHv2] 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.217.182 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 --- v2: added \b to match beginning of the word. So that if we will have ODP_CU_something warning will appear. (Thanks Mike). Maxim. scripts/checkpatch.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b954de5..f813e5b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2937,10 +2937,13 @@ sub process { #CamelCase while ($line =~ m{($Constant|$Lval)}g) { my $var = $1; + 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", "Avoid CamelCase: <$var>\n" . $herecurr);