summaryrefslogtreecommitdiffstats
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-11 23:23:55 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-12 00:58:40 +0200
commit7e781f67df436b67753a65436c0fef0a0ebf5043 (patch)
tree3fd10d6d6bb55e684adb77f9958d9db269aa9272 /scripts/cleanpatch
parentcheckpatch: add a few more --fix corrections (diff)
downloadlinux-7e781f67df436b67753a65436c0fef0a0ebf5043.tar.xz
linux-7e781f67df436b67753a65436c0fef0a0ebf5043.zip
checkpatch: check CamelCase by word, not by $Lval
$Lval is a test for complete name (ie: foo->bar.Baz[1]) If any of this is CamelCase, then the current test uses the entire $Lval. This isn't optimal because it can emit messages with foo->bar.Baz and bar.Baz when Baz is a variable specified in an include file. So instead, break the $Lval into words and check each word for CamelCase uses. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions