All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Stafford Horne <shorne@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Whitcroft <apw@canonical.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] checkpatch: Fix ignoring cover-letter logic
Date: Sun, 10 Sep 2017 11:08:15 -0700	[thread overview]
Message-ID: <1505066895.22023.3.camel@perches.com> (raw)
In-Reply-To: <20170909090406.31523-1-shorne@gmail.com>

On Sat, 2017-09-09 at 18:04 +0900, Stafford Horne wrote:
> Currently running checkpatch on a directory with a cover-letter.patch
> file reports the following error:
> 
>   -----------------------------------------
>   patches/smp-v2/v2-0000-cover-letter.patch
>   -----------------------------------------
> 
>   ERROR: Does not appear to be a unified-diff format patch
> 
> The logic to suppress the unified-diff check for cover letters is there
> but is checking $file instead of $filename.  Fix the variable to use the
> correct one.
> 
> Signed-off-by: Stafford Horne <shorne@gmail.com>

Acked-by: Joe Perches <joe@perches.com>

> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> @@ -6365,7 +6365,7 @@ sub process {
>  		exit(0);
>  	}
>  
> -	if (!$is_patch && $file !~ /cover-letter\.patch$/) {
> +	if (!$is_patch && $filename !~ /cover-letter\.patch$/) {
>  		ERROR("NOT_UNIFIED_DIFF",
>  		      "Does not appear to be a unified-diff format patch\n");
>  	}

      reply	other threads:[~2017-09-10 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-09  9:04 [PATCH] checkpatch: Fix ignoring cover-letter logic Stafford Horne
2017-09-10 18:08 ` Joe Perches [this message]

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=1505066895.22023.3.camel@perches.com \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=apw@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shorne@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.