Skip to content

Commit 78e3f1f

Browse files
taoma-tmtorvalds
authored andcommitted
checkpatch: remove reference to feature-removal-schedule.txt
In commit 9c0ece0 ("Get rid of Documentation/feature-removal.txt"), Linus removes feature-removal-schedule.txt from Documentation, but there is still some reference to this file. So remove them. Signed-off-by: Tao Ma <boyu.mt@taobao.com> Acked-by: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 1ba8dfd commit 78e3f1f

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

scripts/checkpatch.pl

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -352,27 +352,6 @@ sub deparenthesize {
352352

353353
$chk_signoff = 0 if ($file);
354354

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-
376355
my @rawlines = ();
377356
my @lines = ();
378357
my $vname;
@@ -3205,22 +3184,6 @@ sub process {
32053184
}
32063185
}
32073186

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-
32243187
# no volatiles please
32253188
my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b};
32263189
if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {

0 commit comments

Comments
 (0)