diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a3922d0e4d25..576139a508a3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -1898,6 +1898,14 @@ sub process { | |||
| 1898 | } | 1898 | } |
| 1899 | 1899 | ||
| 1900 | if ($realfile =~ m@^(drivers/net/|net/)@ && | 1900 | if ($realfile =~ m@^(drivers/net/|net/)@ && |
| 1901 | $prevrawline =~ /^\+[ \t]*\/\*/ && #starting /* | ||
| 1902 | $prevrawline !~ /\*\/[ \t]*$/ && #no trailing */ | ||
| 1903 | $rawline !~ /^\+[ \t]*\*/) { #no leading * | ||
| 1904 | WARN("NETWORKING_BLOCK_COMMENT_STYLE", | ||
| 1905 | "networking block comments start with * on subsequent lines\n" . $hereprev); | ||
| 1906 | } | ||
| 1907 | |||
| 1908 | if ($realfile =~ m@^(drivers/net/|net/)@ && | ||
| 1901 | $rawline !~ m@^\+[ \t]*\*/[ \t]*$@ && #trailing */ | 1909 | $rawline !~ m@^\+[ \t]*\*/[ \t]*$@ && #trailing */ |
| 1902 | $rawline !~ m@^\+.*/\*.*\*/[ \t]*$@ && #inline /*...*/ | 1910 | $rawline !~ m@^\+.*/\*.*\*/[ \t]*$@ && #inline /*...*/ |
| 1903 | $rawline !~ m@^\+.*\*{2,}/[ \t]*$@ && #trailing **/ | 1911 | $rawline !~ m@^\+.*\*{2,}/[ \t]*$@ && #trailing **/ |
