From: Joe Perches <joe@perches.com>
To: Pavel Roskin <proski@gnu.org>
Cc: Andy Whitcroft <apw@canonical.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] checkpatch: suggest spaces around binary operators in strict mode
Date: Fri, 08 Jul 2011 16:01:48 -0700 [thread overview]
Message-ID: <1310166108.2042.6.camel@Joe-Laptop> (raw)
In-Reply-To: <20110708214159.7559.25740.stgit@mj.roinet.com>
On Fri, 2011-07-08 at 17:41 -0400, Pavel Roskin wrote:
> Signed-off-by: Pavel Roskin <proski@gnu.org>
> ---
> scripts/checkpatch.pl | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index b0aa2c6..9431ada 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -2167,6 +2167,8 @@ sub process {
> if ($ctx =~ /Wx[^WCE]|[^WCE]xW/) {
> ERROR("need consistent spacing around '$op' $at\n" .
> $hereptr);
> + } elsif ($ctx =~ /[^WCE]x[^WCE]/) {
> + CHK("spaces suggested around '$op' $at\n" . $hereptr);
Hey Pavel.
This should probably not be an elsif but
a standalone test.
Also, there's an upcoming patch in mm that
classifies all output ERROR/WARN/CHK types.
This one should be "SPACING".
https://lkml.org/lkml/2011/6/21/256
http://userweb.kernel.org/~akpm/mmotm/broken-out/checkpatchpl-add-ability-to-ignore-various-messages.patch
next prev parent reply other threads:[~2011-07-08 23:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-08 21:41 Pavel Roskin
2011-07-08 23:01 ` Joe Perches [this message]
2011-07-09 1:08 ` Pavel Roskin
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=1310166108.2042.6.camel@Joe-Laptop \
--to=joe@perches.com \
--cc=apw@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=proski@gnu.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
Powered by JetHome