From: Joe Perches <joe@perches.com>
To: Zhi Yong Wu <zwu.kernel@gmail.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org,
James Bottomley <jbottomley@parallels.com>,
linux-kernel mlist <linux-kernel@vger.kernel.org>,
Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>,
akinobu.mita@gmail.com
Subject: Re: [PATCH] scsi: fix the build warning
Date: Wed, 21 Aug 2013 19:25:03 -0700 [thread overview]
Message-ID: <1377138303.12003.25.camel@joe-AO722> (raw)
In-Reply-To: <CAEH94LgyGt=WZ=6oP1vgx826ULO_f_p89PMMzYiRq5Uf9gycQA@mail.gmail.com>
On Thu, 2013-08-22 at 09:59 +0800, Zhi Yong Wu wrote:
> On Thu, Aug 22, 2013 at 9:55 AM, Joe Perches <joe@perches.com> wrote:
> > On Wed, 2013-08-21 at 21:25 -0400, Martin K. Petersen wrote:
> >> >>>>> "Joe" == Joe Perches <joe@perches.com> writes:
> >>
> >> Joe> I don't get this build warning in the first place and I think the
> >> Joe> scsi_debug file is quite old and probably doesn't need to be
> >> Joe> changed at all.
> >>
> >> guard isn't a boolean, it selects the checksum algorithm used.
> >
> > OK, maybe this then...
> > ---
> > drivers/scsi/scsi_debug.c | 2 +-
> > 1 file changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
> > index cb4fefa..6fc2831 100644
> > --- a/drivers/scsi/scsi_debug.c
> > +++ b/drivers/scsi/scsi_debug.c
> > @@ -3312,7 +3312,7 @@ static int __init scsi_debug_init(void)
> > return -EINVAL;
> > }
> >
> > - if (scsi_debug_guard > 1) {
> > + if (scsi_debug_guard < 0 || scsi_debug_guard > 1) {
> I don't think that it can fix that issue.
No, it doesn't fix any compile warning. Your patch, if
it's needed, would still apply.
This patch suggestion fixes an issue where debug_guard
could be set to a negative value.
I didn't sign it, it's up to Martin or I suppose James
to actually want it done.
cheers, Joe
next prev parent reply other threads:[~2013-08-22 2:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 0:44 zwu.kernel
2013-08-22 1:02 ` Joe Perches
2013-08-22 1:05 ` Zhi Yong Wu
2013-08-22 1:17 ` Joe Perches
2013-08-22 1:25 ` Martin K. Petersen
2013-08-22 1:55 ` Joe Perches
2013-08-22 1:59 ` Zhi Yong Wu
2013-08-22 2:25 ` Joe Perches [this message]
2013-08-22 12:42 ` Akinobu Mita
2013-08-22 14:27 ` James Bottomley
2013-08-22 14:49 ` Akinobu Mita
2013-09-20 9:53 ` Paul Bolle
2013-09-20 14:32 ` Akinobu Mita
2013-09-20 16:14 ` Paul Bolle
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=1377138303.12003.25.camel@joe-AO722 \
--to=joe@perches.com \
--cc=akinobu.mita@gmail.com \
--cc=jbottomley@parallels.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=wuzhy@linux.vnet.ibm.com \
--cc=zwu.kernel@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 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®