From: Joe Perches <joe@perches.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Andy Whitcroft <apw@canonical.com>, linux-kernel@vger.kernel.org
Subject: Re: WARNING: Unnecessary parentheses - maybe == should be = ?
Date: Mon, 10 Feb 2014 09:19:46 -0800 [thread overview]
Message-ID: <1392052786.2507.20.camel@joe-AO722> (raw)
In-Reply-To: <20140210092710.GA10899@elgon.mountain>
On Mon, 2014-02-10 at 12:27 +0300, Dan Carpenter wrote:
> These messages are terrifying...
Hey Dan.
Do bumps in the night keep you up too? :)
> We do not want to encourage a million
> first patch submitters to start introducing = vs == bugs.
Definitely true and I didn't think of that.
> Did you look through the warning messages this generates? Was it ever
> appropriate to change the == to =?
I didn't check. My thought was that this was for
patches not files and the use of:
if ((foo == bar))
in a patch was excessive parentheses. The reason
to use the ((foo == bar)) form is when the intent
is to assign.
> Please remove the second part of that message.
Maybe emit it when what being scanned is a patch,
but not a file and only emit the excessive parens
when it's a file.
> Also there needs to be a mailing list for checkpatch.pl. LKML is a
> write only archive, but it's not a discussion list.
<shrug>.
A mailing list just for checkpatch seems excessive.
Maybe a combined source tools mailing list for scripts/
would be better and maybe smatch should be there too.
> Also the seq_puts() warning messages should be put under --strict
> because we have to fight against people submitting those patches.
Another <shrug>.
I still kind of like the seq_printf macro hack.
http://lkml.org/lkml/2013/3/16/79
next prev parent reply other threads:[~2014-02-10 17:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 9:27 Dan Carpenter
2014-02-10 17:19 ` Joe Perches [this message]
2014-02-10 20:24 ` Dan Carpenter
2014-02-10 21:59 ` Joe Perches
2014-02-26 9:29 ` Dan Carpenter
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=1392052786.2507.20.camel@joe-AO722 \
--to=joe@perches.com \
--cc=apw@canonical.com \
--cc=dan.carpenter@oracle.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®