]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: extend CamelCase types and ignore existing CamelCase uses in a patch
authorJoe Perches <joe@perches.com>
Tue, 5 Nov 2013 05:56:53 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:56:53 +0000 (16:56 +1100)
commitaa9b061a980ed3af32b6ca5317e8e842e2b6aeb9
tree3e51e7a363f98ae54c9ca4b30a98e0f9db226bbc
parentb1272d18df4f57d9991f57254b9a55480d586cb3
checkpatch: extend CamelCase types and ignore existing CamelCase uses in a patch

Extend the CamelCase words found to include structure members.

In https://lkml.org/lkml/2013/9/3/318 Sarah Sharp (mostly) wrote:

"In general, if checkpatch.pl complains about a variable a patch
introduces that's CamelCase, you should pay attention to it.  Otherwise,
[] ignore it."

So, if checking a patch, scan the original patched file if it's available
and add any preexisting CamelCase types so reuses do not generate
CamelCase messages.

That also means Andrew's not so cruelly spurned anymore.
https://lkml.org/lkml/2013/2/22/426

Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl