From: akpm@linux-foundation.org Subject: + checkpatch-camelcase-ignore-si-unit-variants-like-_uv.patch added to -mm tree Date: Thu, 13 Jun 2013 13:28:41 -0700 Message-ID: <51ba2b79.3bOaLPJThnBR8af+%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:37613 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756489Ab3FMU2m (ORCPT ); Thu, 13 Jun 2013 16:28:42 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, phil.carmody@partner.samsung.com, joe@perches.com Subject: + checkpatch-camelcase-ignore-si-unit-variants-like-_uv.patch added to -mm tree To: joe@perches.com,phil.carmody@partner.samsung.com From: akpm@linux-foundation.org Date: Thu, 13 Jun 2013 13:28:41 -0700 The patch titled Subject: checkpatch: CamelCase - ignore SI unit variants like "_uV" has been added to the -mm tree. Its filename is checkpatch-camelcase-ignore-si-unit-variants-like-_uv.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Joe Perches Subject: checkpatch: CamelCase - ignore SI unit variants like "_uV" Many existing variable names use SI like variants that should be otherwise obvious and acceptable. Whitelist them from the CamelCase message. Signed-off-by: Joe Perches Suggested-by: Phil Carmody Signed-off-by: Andrew Morton --- scripts/checkpatch.pl | 3 +++ 1 file changed, 3 insertions(+) diff -puN scripts/checkpatch.pl~checkpatch-camelcase-ignore-si-unit-variants-like-_uv scripts/checkpatch.pl --- a/scripts/checkpatch.pl~checkpatch-camelcase-ignore-si-unit-variants-like-_uv +++ a/scripts/checkpatch.pl @@ -3195,7 +3195,10 @@ sub process { #CamelCase if ($var !~ /^$Constant$/ && $var =~ /[A-Z][a-z]|[a-z][A-Z]/ && +#Ignore Page variants $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && +#Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show) + $var !~ /"_[a-z][A-Z](?:_\w+)?$/ && !defined $camelcase{$var}) { $camelcase{$var} = 1; CHK("CAMELCASE", _ Patches currently in -mm which might be from joe@perches.com are linux-next.patch zbud-add-to-mm.patch zswap-add-to-mm.patch zswap-add-documentation.patch checkpatch-change-camelcase-test-and-make-it-strict.patch checkpatch-warn-when-using-gccs-binary-constant-extension.patch checkpatch-add-strict-preference-for-p-=-kmallocsizeofp.patch checkpatch-remove-quote-from-camelcase-test.patch checkpatch-improve-network-block-comment-test-and-message.patch checkpatch-warn-when-networking-block-comment-lines-dont-start-with.patch checkpatch-warn-on-comparisons-to-jiffies.patch checkpatch-warn-on-comparisons-to-get_jiffies_64.patch checkpatch-reduce-false-positive-rate-of-complex-macros.patch checkpatch-add-a-placeholder-to-check-blank-lines-before-declarations.patch checkpatch-dont-warn-on-blank-lines-before-after-braces-as-often.patch checkpatch-add-a-strict-test-for-comparison-to-true-false.patch checkpatch-improve-no-space-after-cast-test.patch checkpatch-create-an-experimental-fix-option-to-correct-patches.patch checkpatch-move-test-for-space-before-semicolon-after-operator-spacing.patch checkpatch-camelcase-ignore-si-unit-variants-like-_uv.patch