]> git.baikalelectronics.ru Git - kernel.git/commit
mpt2sas: fix undefined reference to `__udivdi3' compilation errors
authorSreekanth Reddy <sreekanth.reddy@avagotech.com>
Fri, 19 Sep 2014 06:47:27 +0000 (12:17 +0530)
committerChristoph Hellwig <hch@lst.de>
Mon, 22 Sep 2014 14:35:45 +0000 (16:35 +0200)
commit158afe0db486bd46704c829fc3c51032c00e7d5b
tree6fa543f5d076baee2f2efc8a1302e2f4bdd392db
parentf98999b7cbb8998f16d31400677133af221336f2
mpt2sas: fix undefined reference to `__udivdi3' compilation errors

This patch will fix the below compilation errors on i386 ARCH

drivers/built-in.o: In function `_scsih_qcmd':
mpt2sas_scsih.c:(.text+0x1e7b56): undefined reference to `__udivdi3'
mpt2sas_scsih.c:(.text+0x1e7b8a): undefined reference to `__umoddi3'

Used sector_div() API to fix above compilation errors.

Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c