]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
checkpatch: always check block comment styles
authorJoe Perches <joe@perches.com>
Wed, 9 Sep 2015 22:37:41 +0000 (15:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commit86406b1cb7ac4fa5e7691eae5f2fb10c9af03dc3
tree99b418c11806cc4ca0c7622d7ff271e5d96ce4e2
parent7d3a9f673e1bdb45f86d15a67e230e4a9b050850
checkpatch: always check block comment styles

Some of the block comment tests that are used only for networking are
appropriate for all patches.

For example, these styles are not encouraged:

/*
 block comment without introductory *
*/
and
/*
 * block comment with line terminating */

Remove the networking specific test and add comments.

There are some infrequent false positives where code is lazily
commented out using /* and */ rather than using #if 0/#endif blocks
like:
/* case foo:
case bar: */
case baz:

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>
scripts/checkpatch.pl