diff options
author | Dmitry Torokhov <dtor@vmware.com> | 2010-01-19 13:24:40 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-02-08 19:31:28 -0500 |
commit | d0e2ddff7c4b493acff50a9000564b67cbe7d676 (patch) | |
tree | e2cac9d81a02ff81a2afafaceb483beb2cdc932c /drivers/scsi/vmw_pvscsi.c | |
parent | fa4698fcf59c3bd01c171e5e558bae9e8eb396f1 (diff) |
[SCSI] vmw_pvscsi: fix signedness warning with newer compilers
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>
Diffstat (limited to 'drivers/scsi/vmw_pvscsi.c')
-rw-r--r-- | 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 d2604c813a20..e4ac5829b637 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) | |||
1069 | free_pages((unsigned long)ctx->sgl, get_order(SGL_SIZE)); | 1069 | free_pages((unsigned long)ctx->sgl, get_order(SGL_SIZE)); |
1070 | } | 1070 | } |
1071 | 1071 | ||
1072 | static int pvscsi_setup_msix(const struct pvscsi_adapter *adapter, int *irq) | 1072 | static int pvscsi_setup_msix(const struct pvscsi_adapter *adapter, |
1073 | unsigned int *irq) | ||
1073 | { | 1074 | { |
1074 | struct msix_entry entry = { 0, PVSCSI_VECTOR_COMPLETION }; | 1075 | struct msix_entry entry = { 0, PVSCSI_VECTOR_COMPLETION }; |
1075 | int ret; | 1076 | int ret; |