patch-2.4.9 linux/drivers/acorn/scsi/acornscsi.c

Next file: linux/drivers/acorn/scsi/acornscsi.h
Previous file: linux/drivers/acorn/net/etherh.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/acorn/scsi/acornscsi.c linux/drivers/acorn/scsi/acornscsi.c
@@ -1059,7 +1059,7 @@
     /*
      * Allocate some buffer space, limited to half the buffer size
      */
-    length = min(host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2);
+    length = min(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2);
     if (length) {
 	host->dma.start_addr = address = host->dma.free_addr;
 	host->dma.free_addr = (host->dma.free_addr + length) &
@@ -1187,7 +1187,7 @@
     /*
      * Allocate some buffer space, limited to half the on-board RAM size
      */
-    length = min(host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2);
+    length = min(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2);
     if (length) {
 	host->dma.start_addr = address = host->dma.free_addr;
 	host->dma.free_addr = (host->dma.free_addr + length) &
@@ -1656,8 +1656,8 @@
 		 * to be in operation AFTER the target leaves message out phase.
 		 */
 		acornscsi_sbic_issuecmd(host, CMND_ASSERTATN);
-		period = max(message[3], sdtr_period / 4);
-		length = min(message[4], sdtr_size);
+		period = max(unsigned int, message[3], sdtr_period / 4);
+		length = min(unsigned int, message[4], sdtr_size);
 		msgqueue_addmsg(&host->scsi.msgs, 5, EXTENDED_MESSAGE, 3,
 				 EXTENDED_SDTR, period, length);
 		host->device[host->SCpnt->target].sync_xfer =

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)