From: Alok Kataria <akataria@vmware.com>
To: Dmitry Torokhov <dtor@vmware.com>
Cc: James Bottomley <James.Bottomley@suse.de>,
VMware PV-Drivers <pv-drivers@vmware.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [Pv-drivers] [PATCH] PVSCSI: fix signedness warning with newer compilers
Date: Tue, 19 Jan 2010 10:04:33 -0800 [thread overview]
Message-ID: <1263924273.24149.1.camel@ank32.eng.vmware.com> (raw)
In-Reply-To: <20100119173819.GA28630@dtor-ws.eng.vmware.com>
On Tue, 2010-01-19 at 09:38 -0800, Dmitry Torokhov wrote:
> pvscsi_setup_msix() expects 'irq' argument to be an int but is being
> passed unsigned int. Unsigned int is more proper type for IRQ number
> so let's use it. This shuts off a compile warning with recent
> compilers.
>
> Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
LGTM.
Signed-off-by: Alok N Kataria <akataria@vmware.com>
Thanks.
> ---
> drivers/scsi/vmw_pvscsi.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c
> index d2604c8..e4ac582 100644
> --- a/drivers/scsi/vmw_pvscsi.c
> +++ b/drivers/scsi/vmw_pvscsi.c
> @@ -1069,7 +1069,8 @@ static void pvscsi_free_sgls(const struct pvscsi_adapter *adapter)
> free_pages((unsigned long)ctx->sgl, get_order(SGL_SIZE));
> }
>
> -static int pvscsi_setup_msix(const struct pvscsi_adapter *adapter, int *irq)
> +static int pvscsi_setup_msix(const struct pvscsi_adapter *adapter,
> + unsigned int *irq)
> {
> struct msix_entry entry = { 0, PVSCSI_VECTOR_COMPLETION };
> int ret;
>
> _______________________________________________
> Pv-drivers mailing list
> Pv-drivers@vmware.com
> http://mailman2.vmware.com/mailman/listinfo/pv-drivers
next parent reply other threads:[~2010-01-19 18:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20100119173819.GA28630@dtor-ws.eng.vmware.com>
2010-01-19 18:04 ` Alok Kataria [this message]
2010-01-19 18:08 ` [Pv-drivers] [PATCH] PVSCSI: fix signedness warning with newer compilers James Bottomley
2010-01-19 18:19 ` Alok Kataria
2010-01-19 18:20 ` Dmitry Torokhov
2010-01-19 18:23 ` James Bottomley
2010-01-19 18:27 ` Dmitry Torokhov
2010-01-19 18:26 ` James Bottomley
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=1263924273.24149.1.camel@ank32.eng.vmware.com \
--to=akataria@vmware.com \
--cc=James.Bottomley@suse.de \
--cc=dtor@vmware.com \
--cc=linux-scsi@vger.kernel.org \
--cc=pv-drivers@vmware.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