Skip to contentSkip to conversation

u14-34f: Fix 32bit only problem

PATCH New Alan Cox 1 participant 1 message May 2, 2008 SCSI

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 u14-34f: Fix 32bit only problem

Another user of 32bit time

drivers/scsi/u14-34f.c +4 -2
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.25-mm1/drivers/scsi/u14-34f.c linux-2.6.25-mm1/drivers/scsi/u14-34f.c
@@ -745,7 +745,8 @@
 static int board_inquiry(unsigned int j) {
    struct mscp *cpp;
    dma_addr_t id_dma_addr;
-   unsigned int time, limit = 0;
+   unsigned int limit = 0;
+   unsigned long time;
 
    id_dma_addr = pci_map_single(HD(j)->pdev, HD(j)->board_id,
                     sizeof(HD(j)->board_id), PCI_DMA_BIDIRECTIONAL);
@@ -1393,7 +1394,8 @@
 }
 
 static int u14_34f_eh_host_reset(struct scsi_cmnd *SCarg) {
-   unsigned int i, j, time, k, c, limit = 0;
+   unsigned int i, j, k, c, limit = 0;
+   unsigned long time;
    int arg_done = FALSE;
    struct scsi_cmnd *SCpnt;