diff options
author | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2013-08-31 11:15:03 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> | 2013-08-31 11:15:03 +0000 |
commit | 21fbf2d1250d43d87e39407d6b9c5fa5eeff6077 (patch) | |
tree | ba1e1f90ef10e511076dcda79e8a9f4098126809 /scripts | |
parent | 2c143cc093d0eee99f862d6e6e8aadfc150e2c7b (diff) | |
download | master-187ad058-21fbf2d1250d43d87e39407d6b9c5fa5eeff6077.tar.gz master-187ad058-21fbf2d1250d43d87e39407d6b9c5fa5eeff6077.tar.bz2 master-187ad058-21fbf2d1250d43d87e39407d6b9c5fa5eeff6077.zip |
scripts/checkpatch.pl: Remove check for deprecated features
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37861 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 aba59c70de..afb099d779 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -353,27 +353,6 @@ sub deparenthesize { $chk_signoff = 0 if ($file); -my @dep_includes = (); -my @dep_functions = (); -my $removal = "Documentation/feature-removal-schedule.txt"; -if ($tree && -f "$root/$removal") { - open(my $REMOVE, '<', "$root/$removal") || - die "$P: $removal: open failed - $!\n"; - while (<$REMOVE>) { - if (/^Check:\s+(.*\S)/) { - for my $entry (split(/[, ]+/, $1)) { - if ($entry =~ m@include/(.*)@) { - push(@dep_includes, $1); - - } elsif ($entry !~ m@/@) { - push(@dep_functions, $entry); - } - } - } - } - close($REMOVE); -} - my @rawlines = (); my @lines = (); my $vname; @@ -3099,22 +3078,6 @@ sub process { } } -# don't include deprecated include files (uses RAW line) - for my $inc (@dep_includes) { - if ($rawline =~ m@^.\s*\#\s*include\s*\<$inc>@) { - ERROR("DEPRECATED_INCLUDE", - "Don't use <$inc>: see Documentation/feature-removal-schedule.txt\n" . $herecurr); - } - } - -# don't use deprecated functions - for my $func (@dep_functions) { - if ($line =~ /\b$func\b/) { - ERROR("DEPRECATED_FUNCTION", - "Don't use $func(): see Documentation/feature-removal-schedule.txt\n" . $herecurr); - } - } - # no volatiles please my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b}; if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) { |