]> 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>
Wed, 31 Oct 2012 05:49:55 +0000 (16:49 +1100)
commit9f021d93c4eff1829d7307d61b4d703da0671612
treee4502fa3b33b241d8fc74cc6e907711f5b6c121e
parentca9ad648c938b20d342e147c0e1ab2e3a52eaa49
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