From: Joe Perches <joe@perches.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Zhi Yong Wu <zwu.kernel@gmail.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 18:55:59 -0700 [thread overview]
Message-ID: <1377136559.12003.18.camel@joe-AO722> (raw)
In-Reply-To: <yq1ppt68qk9.fsf@sermon.lab.mkp.net>
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) {
printk(KERN_ERR "scsi_debug_init: guard must be 0 or 1\n");
return -EINVAL;
}
next prev parent reply other threads:[~2013-08-22 1:56 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 [this message]
2013-08-22 1:59 ` Zhi Yong Wu
2013-08-22 2:25 ` Joe Perches
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=1377136559.12003.18.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®