Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0e2ddff authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by James Bottomley
Browse files

[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: default avatarDmitry Torokhov <dtor@vmware.com>
Acked-by: default avatarAlok Kataria <akataria@vmware.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent fa4698fc
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1069,7 +1069,8 @@ static void pvscsi_free_sgls(const struct pvscsi_adapter *adapter)
		free_pages((unsigned long)ctx->sgl, get_order(SGL_SIZE));
		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 };
	struct msix_entry entry = { 0, PVSCSI_VECTOR_COMPLETION };
	int ret;
	int ret;