]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: megaraid_sas: handle dma_addr_t right on 32-bit
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Feb 2017 21:21:51 +0000 (22:21 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 16 Feb 2017 02:39:45 +0000 (21:39 -0500)
commitd1da522fb8a70b8c527d4ad15f9e62218cc00f2c
treec7e3b198ea46e0486e6233453d750aeb6344271b
parent40a4c2c392593b57a2e6f6438794492596279838
scsi: megaraid_sas: handle dma_addr_t right on 32-bit

When building with a dma_addr_t that is different from pointer size, we
get this warning:

drivers/scsi/megaraid/megaraid_sas_fusion.c: In function 'megasas_make_prp_nvme':
drivers/scsi/megaraid/megaraid_sas_fusion.c:1654:17: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

It's better to not pretend that the dma address is a pointer and instead
use a dma_addr_t consistently.

Fixes: 33203bc4d61b ("scsi: megaraid_sas: NVME fast path io support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c