Commit b423334b authored by Andi Kleen's avatar Andi Kleen Committed by James Bottomley

[PATCH] 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.
parent 316a3aaa
...@@ -3550,8 +3550,8 @@ int BusLogic_QueueCommand(SCSI_Command_T *Command, ...@@ -3550,8 +3550,8 @@ int BusLogic_QueueCommand(SCSI_Command_T *Command,
CCB->DataLength = Count * sizeof(BusLogic_ScatterGatherSegment_T); CCB->DataLength = Count * sizeof(BusLogic_ScatterGatherSegment_T);
if (BusLogic_MultiMasterHostAdapterP(HostAdapter)) if (BusLogic_MultiMasterHostAdapterP(HostAdapter))
CCB->DataPointer = (unsigned int)CCB->DMA_Handle + CCB->DataPointer = (unsigned int)CCB->DMA_Handle +
((unsigned int)&CCB->ScatterGatherList - ((unsigned long)&CCB->ScatterGatherList -
(unsigned int)CCB); (unsigned long)CCB);
else CCB->DataPointer = Virtual_to_32Bit_Virtual(CCB->ScatterGatherList); else CCB->DataPointer = Virtual_to_32Bit_Virtual(CCB->ScatterGatherList);
for (Segment = 0; Segment < Count; Segment++) for (Segment = 0; Segment < Count; Segment++)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment