|
@@ -1882,6 +1882,20 @@ sub process {
|
|
|
"No space is necessary after a cast\n" . $hereprev);
|
|
|
}
|
|
|
|
|
|
+ if ($realfile =~ m@^(drivers/net/|net/)@ &&
|
|
|
+ $rawline =~ /^\+[ \t]*\/\*[ \t]*$/ &&
|
|
|
+ $prevrawline =~ /^\+[ \t]*$/) {
|
|
|
+ WARN("NETWORKING_BLOCK_COMMENT_STYLE",
|
|
|
+ "networking block comments don't use an empty /* line, use /* Comment...\n" . $hereprev);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ($realfile =~ m@^(drivers/net/|net/)@ &&
|
|
|
+ $rawline !~ m@^\+[ \t]*(\/\*|\*\/)@ &&
|
|
|
+ $rawline =~ m@^\+[ \t]*.+\*\/[ \t]*$@) {
|
|
|
+ WARN("NETWORKING_BLOCK_COMMENT_STYLE",
|
|
|
+ "networking block comments put the trailing */ on a separate line\n" . $herecurr);
|
|
|
+ }
|
|
|
+
|
|
|
# check for spaces at the beginning of a line.
|
|
|
# Exceptions:
|
|
|
# 1) within comments
|