[SCSI] vmw_pvscsi: fix signedness warning with newer compilers
authorDmitry Torokhov <dtor@vmware.com>
Tue, 19 Jan 2010 18:24:40 +0000 (10:24 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 9 Feb 2010 00:31:28 +0000 (18:31 -0600)
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>
Acked-by: Alok Kataria <akataria@vmware.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/vmw_pvscsi.c

index d2604c813a204d607169eb521487babadf178e82..e4ac5829b637b2c99e0cc7fdc37b7ba875bc1056 100644 (file)
@@ -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;