All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix 64bit warnings in BusLogic driver
@ 2003-10-07 17:30 Andi Kleen
  0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2003-10-07 17:30 UTC (permalink / raw)
  To: linux-scsi


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

This cleans them up.

-Andi

diff -u linux-2.5-cleanup/drivers/scsi/BusLogic.c-o linux-2.5-cleanup/drivers/scsi/BusLogic.c
--- linux-2.5-cleanup/drivers/scsi/BusLogic.c-o	2003-09-28 06:33:44.000000000 +0200
+++ linux-2.5-cleanup/drivers/scsi/BusLogic.c	2003-12-02 16:51:52.119244784 +0100
@@ -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++)
 	{



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-07 17:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-07 17:30 [PATCH] Fix 64bit warnings in BusLogic driver Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.