]> 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>
Thu, 1 Nov 2012 04:24:15 +0000 (15:24 +1100)
commitba9d2172b831fb0cbe5c0afa882bc9f21d7dc297
treec0347cd6d18d449beb81f8a82b1128fb0b7cd0b6
parentf48991952962bcce5f9848cdbee0868bd3daa560
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