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 28516587baba..561f41ef531f 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -3396,6 +3396,14 @@ sub process { | |||
3396 | "Prefer dev_$level(... to dev_printk(KERN_$orig, ...\n" . $herecurr); | 3396 | "Prefer dev_$level(... to dev_printk(KERN_$orig, ...\n" . $herecurr); |
3397 | } | 3397 | } |
3398 | 3398 | ||
3399 | # ENOSYS means "bad syscall nr" and nothing else. This will have a small | ||
3400 | # number of false positives, but assembly files are not checked, so at | ||
3401 | # least the arch entry code will not trigger this warning. | ||
3402 | if ($line =~ /\bENOSYS\b/) { | ||
3403 | WARN("ENOSYS", | ||
3404 | "ENOSYS means 'invalid syscall nr' and nothing else\n" . $herecurr); | ||
3405 | } | ||
3406 | |||
3399 | # function brace can't be on same line, except for #defines of do while, | 3407 | # function brace can't be on same line, except for #defines of do while, |
3400 | # or if closed on same line | 3408 | # or if closed on same line |
3401 | if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and | 3409 | if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and |