From: Matthias Kaehlcke <mka@chromium.org>
To: Joe Perches <joe@perches.com>
Cc: Alasdair Kergon <agk@redhat.com>,
Mike Snitzer <snitzer@redhat.com>,
dm-devel@redhat.com, Shaohua Li <shli@kernel.org>,
linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org,
Grant Grundler <grundler@chromium.org>,
Michael Davidson <md@google.com>,
Greg Hackmann <ghackmann@google.com>
Subject: Re: [PATCH] dm ioctl: Remove double parentheses
Date: Mon, 3 Apr 2017 09:56:53 -0700 [thread overview]
Message-ID: <20170403165653.GB13986@google.com> (raw)
In-Reply-To: <1491012453.27353.25.camel@perches.com>
Hi Joe,
El Fri, Mar 31, 2017 at 07:07:33PM -0700 Joe Perches ha dit:
> On Fri, 2017-03-31 at 18:50 -0700, Matthias Kaehlcke wrote:
> > El Thu, Mar 16, 2017 at 09:48:30AM -0700 Matthias Kaehlcke ha dit:
> >
> > > The extra pair of parantheses is not needed and causes clang to generate
> > > the following warning:
> > >
> > > drivers/md/dm-ioctl.c:1776:11: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
> > > if ((cmd == DM_DEV_CREATE_CMD)) {
> > > ~~~~^~~~~~~~~~~~~~~~~~~~
> > > drivers/md/dm-ioctl.c:1776:11: note: remove extraneous parentheses around the comparison to silence this warning
> > > if ((cmd == DM_DEV_CREATE_CMD)) {
> > > ~ ^ ~
> > > drivers/md/dm-ioctl.c:1776:11: note: use '=' to turn this equality comparison into an assignment
> > > if ((cmd == DM_DEV_CREATE_CMD)) {
>
> There are dozens of these comparisons in the kernel.
> Are you fixing them all or just this one?
For now I focus on occurrences that pop up in my builds. So far there
have been two more:
https://patchwork.kernel.org/patch/9626833/
https://patchwork.kernel.org/patch/9631591/
Thanks
Matthias
prev parent reply other threads:[~2017-04-03 16:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-16 16:48 [PATCH] dm ioctl: Remove double parentheses Matthias Kaehlcke
2017-04-01 1:50 ` Matthias Kaehlcke
2017-04-01 2:07 ` Joe Perches
2017-04-01 2:07 ` Joe Perches
2017-04-03 16:56 ` Matthias Kaehlcke [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=20170403165653.GB13986@google.com \
--to=mka@chromium.org \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=ghackmann@google.com \
--cc=grundler@chromium.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=md@google.com \
--cc=shli@kernel.org \
--cc=snitzer@redhat.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.