Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330097
b: refs/heads/master
c: 0588060
h: refs/heads/master
i:
  330095: 5283469
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Oct 5, 2012
1 parent 743dd99 commit 5492e06
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f26b8376faad26372a579606ecbd77b20e99dd8
refs/heads/master: 058806007450489bb8f457b275e5cb5c946320c1
14 changes: 14 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5492e06

Please sign in to comment.