diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index cd251d5f3f1a..d2d5ba17ad6c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -352,27 +352,6 @@ sub deparenthesize { | |||
| 352 | 352 | ||
| 353 | $chk_signoff = 0 if ($file); | 353 | $chk_signoff = 0 if ($file); |
| 354 | 354 | ||
| 355 | my @dep_includes = (); | ||
| 356 | my @dep_functions = (); | ||
| 357 | my $removal = "Documentation/feature-removal-schedule.txt"; | ||
| 358 | if ($tree && -f "$root/$removal") { | ||
| 359 | open(my $REMOVE, '<', "$root/$removal") || | ||
| 360 | die "$P: $removal: open failed - $!\n"; | ||
| 361 | while (<$REMOVE>) { | ||
| 362 | if (/^Check:\s+(.*\S)/) { | ||
| 363 | for my $entry (split(/[, ]+/, $1)) { | ||
| 364 | if ($entry =~ m@include/(.*)@) { | ||
| 365 | push(@dep_includes, $1); | ||
| 366 | |||
| 367 | } elsif ($entry !~ m@/@) { | ||
| 368 | push(@dep_functions, $entry); | ||
| 369 | } | ||
| 370 | } | ||
| 371 | } | ||
| 372 | } | ||
| 373 | close($REMOVE); | ||
| 374 | } | ||
| 375 | |||
| 376 | my @rawlines = (); | 355 | my @rawlines = (); |
| 377 | my @lines = (); | 356 | my @lines = (); |
| 378 | my $vname; | 357 | my $vname; |
| @@ -3205,22 +3184,6 @@ sub process { | |||
| 3205 | } | 3184 | } |
| 3206 | } | 3185 | } |
| 3207 | 3186 | ||
| 3208 | # don't include deprecated include files (uses RAW line) | ||
| 3209 | for my $inc (@dep_includes) { | ||
| 3210 | if ($rawline =~ m@^.\s*\#\s*include\s*\<$inc>@) { | ||
| 3211 | ERROR("DEPRECATED_INCLUDE", | ||
| 3212 | "Don't use <$inc>: see Documentation/feature-removal-schedule.txt\n" . $herecurr); | ||
| 3213 | } | ||
| 3214 | } | ||
| 3215 | |||
| 3216 | # don't use deprecated functions | ||
| 3217 | for my $func (@dep_functions) { | ||
| 3218 | if ($line =~ /\b$func\b/) { | ||
| 3219 | ERROR("DEPRECATED_FUNCTION", | ||
| 3220 | "Don't use $func(): see Documentation/feature-removal-schedule.txt\n" . $herecurr); | ||
| 3221 | } | ||
| 3222 | } | ||
| 3223 | |||
| 3224 | # no volatiles please | 3187 | # no volatiles please |
| 3225 | my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b}; | 3188 | my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b}; |
| 3226 | if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) { | 3189 | if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) { |
