diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-02-14 22:21:51 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-02-16 03:39:45 +0100 |
commit | d1da522fb8a70b8c527d4ad15f9e62218cc00f2c (patch) | |
tree | c7e3b198ea46e0486e6233453d750aeb6344271b /drivers/net/phy/davicom.c | |
parent | scsi: megaraid_sas: array overflow in megasas_dump_frame() (diff) | |
download | linux-d1da522fb8a70b8c527d4ad15f9e62218cc00f2c.tar.xz linux-d1da522fb8a70b8c527d4ad15f9e62218cc00f2c.zip |
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>
Diffstat (limited to 'drivers/net/phy/davicom.c')
0 files changed, 0 insertions, 0 deletions