public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Whitcroft <apw@canonical.com>
To: Tao Ma <tm@tao.ma>
Cc: linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH 3/5] checkpatch: Remove reference to feature-removal-schedule.txt.
Date: Thu, 8 Nov 2012 17:47:02 +0000	[thread overview]
Message-ID: <20121108174702.GL3066@dm> (raw)
In-Reply-To: <1352382635-2773-3-git-send-email-tm@tao.ma>

On Thu, Nov 08, 2012 at 09:50:33PM +0800, Tao Ma wrote:
> From: Tao Ma <boyu.mt@taobao.com>
> 
> In 9c0ece069, Linus removed feature-removal-schedule.txt from Documentation,
> but there is still some reference to this file. So remove them.
> 
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Andy Whitcroft <apw@canonical.com>
> Cc: Linus Torvalds <torvalds@linux-foundation.org>
> Signed-off-by: Tao Ma <boyu.mt@taobao.com>
> ---
>  scripts/checkpatch.pl |   44 --------------------------------------------
>  1 files changed, 0 insertions(+), 44 deletions(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 21a9f5d..b0240b8 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -352,27 +352,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;
> @@ -3181,29 +3160,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/) {
> -			WARN("VOLATILE",
> -			     "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt\n" . $herecurr);
> -		}
> -

This last bit here looks to be an accidental extra deletiong ?  I don't
think this relates to the patch at hand.

>  # warn about #if 0
>  		if ($line =~ /^.\s*\#\s*if\s+0\b/) {
>  			CHK("REDUNDANT_CODE",

-apw

  reply	other threads:[~2012-11-08 17:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 13:46 [PATCH 0/5] Remove all the reference to feature-removal-schedule Tao Ma
2012-11-08 13:50 ` [PATCH 1/5] Documentation: Remove reference to feature-removal-schedule.txt Tao Ma
2012-11-08 13:50   ` [PATCH 2/5] kernel: " Tao Ma
2012-11-08 13:50   ` [PATCH 3/5] checkpatch: " Tao Ma
2012-11-08 17:47     ` Andy Whitcroft [this message]
2012-11-09  1:38       ` [PATCH V2 " Tao Ma
2012-11-09  9:55         ` [Acked] " Andy Whitcroft
2012-11-08 13:50   ` [PATCH 4/5] sound: " Tao Ma
2012-11-08 13:50   ` [PATCH 5/5] drivers: " Tao Ma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121108174702.GL3066@dm \
    --to=apw@canonical.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tm@tao.ma \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox