lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1425887144-8109-1-git-send-email-hofrat@osadl.org>
Date:	Mon,  9 Mar 2015 03:45:44 -0400
From:	Nicholas Mc Guire <hofrat@...dl.org>
To:	"James E.J. Bottomley" <JBottomley@...allels.com>
Cc:	linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
	Nicholas Mc Guire <hofrat@...dl.org>
Subject: [PATCH] aic94xx: match wait_for_completion_timeout return type

return type of wait_for_completion_timeout is unsigned long not int. As
leftover is used exclusively for wait_for_completion_timeout its type is
simply changed to unsigned long.

Signed-off-by: Nicholas Mc Guire <hofrat@...dl.org>
---

This was only compile tested for x86_64_defconfig +
CONFIG_SCSI_LOWLEVEL=y, CONFIG_SCSI_AIC94XX=m

Patch is against 4.0-rc2 linux-next (localversion-next is -next-20150306)

 drivers/scsi/aic94xx/aic94xx_tmf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/aic94xx/aic94xx_tmf.c b/drivers/scsi/aic94xx/aic94xx_tmf.c
index d4c35df..161b536 100644
--- a/drivers/scsi/aic94xx/aic94xx_tmf.c
+++ b/drivers/scsi/aic94xx/aic94xx_tmf.c
@@ -343,7 +343,7 @@ static void asd_tmf_tasklet_complete(struct asd_ascb *ascb,
 static int asd_clear_nexus(struct sas_task *task)
 {
 	int res = TMF_RESP_FUNC_FAILED;
-	int leftover;
+	unsigned long leftover;
 	struct asd_ascb *tascb = task->lldd_task;
 	DECLARE_COMPLETION_ONSTACK(completion);
 	unsigned long flags;
@@ -410,7 +410,7 @@ int asd_abort_task(struct sas_task *task)
 	unsigned long flags;
 	struct asd_ascb *ascb = NULL;
 	struct scb *scb;
-	int leftover;
+	unsigned long leftover;
 	DECLARE_TCS(tcs);
 	DECLARE_COMPLETION_ONSTACK(completion);
 	DECLARE_COMPLETION_ONSTACK(tascb_completion);
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ