diff options
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a6d436809bf5..93a7edfe0f05 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -6639,6 +6639,12 @@ sub process { | |||
6639 | "unknown module license " . $extracted_string . "\n" . $herecurr); | 6639 | "unknown module license " . $extracted_string . "\n" . $herecurr); |
6640 | } | 6640 | } |
6641 | } | 6641 | } |
6642 | |||
6643 | # check for sysctl duplicate constants | ||
6644 | if ($line =~ /\.extra[12]\s*=\s*&(zero|one|int_max)\b/) { | ||
6645 | WARN("DUPLICATED_SYSCTL_CONST", | ||
6646 | "duplicated sysctl range checking value '$1', consider using the shared one in include/linux/sysctl.h\n" . $herecurr); | ||
6647 | } | ||
6642 | } | 6648 | } |
6643 | 6649 | ||
6644 | # If we have no input at all, then there is nothing to report on | 6650 | # If we have no input at all, then there is nothing to report on |