checkpatch: improve network block comment style checking
authorJoe Perches <[email protected]>
Thu, 8 Nov 2012 23:53:29 +0000 (15:53 -0800)
committerLinus Torvalds <[email protected]>
Fri, 9 Nov 2012 05:41:46 +0000 (06:41 +0100)
commitc24f9f195edf8c7f78eff1081cdadd26bd272ee3
tree27063fcac4f5fd20054b3ca45fe15d6c39762876
parent3d70f8c617a436c7146ecb81df2265b4626dfe89
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 <[email protected]>
Reported-by: Larry Finger <[email protected]>
Cc: David Miller <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl