]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: improve network block comment style checking
authorJoe Perches <joe@perches.com>
Thu, 25 Oct 2012 01:15:08 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 2 Nov 2012 05:00:57 +0000 (16:00 +1100)
commit3d36cae9578bb6b194cceaa0112d986d1279523a
treebd5c247ef6b8a6fe2cb1fc51679a6ddb96ce8696
parent2dfd2945a82330c5bfdad1b8d90578d08c452eab
checkpatch: improve network block comment style checking

Some comment styles in net and drivers/net are flagged inappropriately.

Avoid proclaiming inline comments like:
int a = b; /* some comment */
and block comments like:
/*********************
 * some comment
 ********************/
are defective.

Tested with
$ cat drivers/net/t.c
/* foo */

/*
 * foo
 */

/* foo
 */

/* foo
 * bar */

/****************************
 * some long block comment
 ***************************/

struct foo {
int bar; /* another test */
};
$

Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl