Skip to contentSkip to conversation

Fix 64bit warnings in BusLogic driver

PATCH New Andi Kleen 1 participant 1 message Oct 7, 2003

Subsystems (2)
lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Fix 64bit warnings in BusLogic driver

During a make allyesconfig on x86-64 I noticed several integer/pointer mismatch warnings in the bus logic driver.

This cleans them up.

-Andi

drivers/scsi/BusLogic.c renamed from drivers/scsi/BusLogic.c-o +2 -2
diff -u linux-2.5-cleanup/drivers/scsi/BusLogic.c-o linux-2.5-cleanup/drivers/scsi/BusLogic.c
@@ -3538,8 +3538,8 @@
       CCB->DataLength = Count * sizeof(BusLogic_ScatterGatherSegment_T);
       if (BusLogic_MultiMasterHostAdapterP(HostAdapter))
 	CCB->DataPointer = (unsigned int)CCB->DMA_Handle +
-			    ((unsigned int)&CCB->ScatterGatherList - 
-			     (unsigned int)CCB);
+			    ((unsigned long)&CCB->ScatterGatherList - 
+			     (unsigned long)CCB);
       else CCB->DataPointer = Virtual_to_32Bit_Virtual(CCB->ScatterGatherList);
       for (Segment = 0; Segment < Count; Segment++)
 	{