scsi: aha1542: Fix zeroday __udivdi3 warning
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 28 Nov 2018 05:41:24 +0000 (21:41 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Dec 2018 03:16:00 +0000 (22:16 -0500)
commit492ca4da6f0798cf20ecaf330abc8d79e540a43a
treeff5e588e22a11098e3d58f9722fe02165c20fc31
parent7171455354eb2ed494ddb6fe50988e98bb5cfa96
scsi: aha1542: Fix zeroday __udivdi3 warning

dma_addr_t can be u64 on pae systems but isa_virt_to_bus only ever
returns unsigned long (because an ISA physical address can only be 24
bits). Cast to unsigned long to avoid division.

Fixes: 1794ef2b150d ("scsi: aha1542: convert to DMA mapping API")
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aha1542.c