scsi: lpfc: use div_u64 for 64-bit division
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Feb 2017 20:31:43 +0000 (21:31 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Feb 2017 03:07:03 +0000 (22:07 -0500)
commit90ec7c9dff07d676c0b9b499286b931005c6b051
treefb6bf3ebd9a49c8273f36eac679db7d9e9c0d6a5
parent2559a1ef688f933835912c731bed2254146a9b04
scsi: lpfc: use div_u64 for 64-bit division

The new debugfs output causes a link error on 32-bit architectures:

ERROR: "__aeabi_uldivmod" [drivers/scsi/lpfc/lpfc.ko] undefined!

This code is not performance critical, so we can simply use div_u64().

[mkp: fixed up whitespace]

Fixes: bd2cdd5e400f ("scsi: lpfc: NVME Initiator: Add debugfs support")
Fixes: 2b65e18202fd ("scsi: lpfc: NVME Target: Add debugfs support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_debugfs.c