Message ID | 1415988898-993-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDX25FHYWQNBBOUNTGRQKGQEGNDCDXQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 922B7240ED for <linaro@patches.linaro.org>; Fri, 14 Nov 2014 18:15:23 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id d17sf11032216eek.3 for <linaro@patches.linaro.org>; Fri, 14 Nov 2014 10:15:22 -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=MUS8dzhHZ1JzTpdwoOptQKkZAT8ENY25sdraTj4eCV8=; b=kCBGyy6N6uOw3D/WG/tFtEAPY/H8m1NAoinG2Vf9wfDwdOpGjLVSYzl8/NBaa4K65v Fbnnp1cCr3E/bxDfljcwS0RSLSUuuJ18ErDvC6Re2GENbXqZl80fNBWExF2ste7gtD1Y JQ55F5SFMDUyfBkNjGjvh1Z9G3nSJbvT02bLgutDtWjvfFbOKtW1Z8H7YFAHREbEi0Us 7gqnE2k7QK7QPGrC0xYjUAzjzRxFEBcT/Nzv+eYnd7DCMTb8Avj/RNXkSNOmtQOIjCIx 92+D2cYiKqrByubSkpL7mpmLMxj7W3TDg7L6n40Mg05XLazuunpq/C7dZOI21MLzIzXC Q0JQ== X-Gm-Message-State: ALoCoQkDYMO2R++jt66zB+HsrPr9sPoMuhIhMRMXVqWF5HBV10Sv8K6ODmeyPsg62qD3cdk/5PDx X-Received: by 10.112.169.68 with SMTP id ac4mr18570lbc.24.1415988922469; Fri, 14 Nov 2014 10:15:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.131 with SMTP id e3ls979485lam.31.gmail; Fri, 14 Nov 2014 10:15:22 -0800 (PST) X-Received: by 10.152.120.73 with SMTP id la9mr9647215lab.23.1415988922180; Fri, 14 Nov 2014 10:15:22 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id o6si21414574lao.129.2014.11.14.10.15.22 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:15:22 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by mail-lb0-f171.google.com with SMTP id b6so13269548lbj.16 for <patchwork-forward@linaro.org>; Fri, 14 Nov 2014 10:15:22 -0800 (PST) X-Received: by 10.153.7.170 with SMTP id dd10mr9561920lad.44.1415988922076; Fri, 14 Nov 2014 10:15:22 -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 ew9csp810274lbc; Fri, 14 Nov 2014 10:15:21 -0800 (PST) X-Received: by 10.224.98.148 with SMTP id q20mr9016682qan.18.1415988920623; Fri, 14 Nov 2014 10:15:20 -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 v1si52139856qad.74.2014.11.14.10.15.19 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:15:20 -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 <lng-odp-bounces@lists.linaro.org>) id 1XpLOw-000514-Gv; Fri, 14 Nov 2014 18:15:18 +0000 Received: from mail-la0-f43.google.com ([209.85.215.43]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <maxim.uvarov@linaro.org>) id 1XpLOq-00050X-F7 for lng-odp@lists.linaro.org; Fri, 14 Nov 2014 18:15:12 +0000 Received: by mail-la0-f43.google.com with SMTP id ge10so15683873lab.16 for <lng-odp@lists.linaro.org>; Fri, 14 Nov 2014 10:15:06 -0800 (PST) X-Received: by 10.152.7.71 with SMTP id h7mr9383883laa.68.1415988906773; Fri, 14 Nov 2014 10:15:06 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-121.2com.net. [46.188.125.121]) by mx.google.com with ESMTPSA id z5sm4469688lbn.12.2014.11.14.10.15.05 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Nov 2014 10:15:05 -0800 (PST) From: Maxim Uvarov <maxim.uvarov@linaro.org> To: lng-odp@lists.linaro.org Date: Fri, 14 Nov 2014 21:14:58 +0300 Message-Id: <1415988898-993-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: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=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.171 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b954de5..cdb221c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2940,7 +2940,9 @@ 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", "Avoid CamelCase: <$var>\n" . $herecurr);
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 <maxim.uvarov@linaro.org> --- scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+)