+ checkpatch-find-camelcase-definitions-of-struct-union-enum.patch added to -mm tree
Subject: + checkpatch-find-camelcase-definitions-of-struct-union-enum.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 24 Sep 2013 16:00:29 -0700
The patch titled
Subject: checkpatch: find CamelCase definitions of struct/union/enum
has been added to the -mm tree. Its filename is
checkpatch-find-camelcase-definitions-of-struct-union-enum.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/checkpatch-find-camelcase-definitions-of-struct-union-enum.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/checkpatch-find-camelcase-definitions-of-struct-union-enum.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 <[email protected]>
Subject: checkpatch: find CamelCase definitions of struct/union/enum
Checkpatch doesn't currently find CamelCase definitions of structs, unions or enums.
Add that ability.
---
scripts/checkpatch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-find-camelcase-definitions-of-struct-union-enum +3 -2
@@ -443,8 +443,9 @@ sub seed_camelcase_file { next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/); if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) { $camelcase{$1} = 1; - } - elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) { + } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) { + $camelcase{$1} = 1; + } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) { $camelcase{$1} = 1; } }
_
Patches currently in -mm which might be from [email protected] are
checkpatch-make-extern-in-h-prototypes-quieter.patch kernel-timerc-convert-kmalloc_nodegfp_zero-to-kzalloc_node.patch ksm-remove-redundant-__gfp_zero-from-kcalloc.patch checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch checkpatch-extend-camelcase-types-and-ignore-existing-camelcase-uses-in-a-patch.patch checkpatch-update-seq_foo-tests.patch checkpatch-find-camelcase-definitions-of-struct-union-enum.patch kernel-modulec-use-pr_foo.patch
linux-next.patch