]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/siw: Fix pointer-to-int-cast warning in siw_rx_pbl()
authorTom Seewald <tseewald@gmail.com>
Wed, 10 Jun 2020 17:47:17 +0000 (12:47 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 15 Jun 2020 19:00:08 +0000 (16:00 -0300)
commit4d652f6dda4ab9760721995255ef8d076cf95831
tree2f667ee5679050d5950ddc57db2163ec246b1eb6
parent98202ac443c98e675cb3926fb133d394f70e9d4f
RDMA/siw: Fix pointer-to-int-cast warning in siw_rx_pbl()

The variable buf_addr is type dma_addr_t, which may not be the same size
as a pointer.  To ensure it is the correct size, cast to a uintptr_t.

Fixes: e0b8df37d1f0 ("RDMA/siw: Fix 64/32bit pointer inconsistency")
Link: https://lore.kernel.org/r/20200610174717.15932-1-tseewald@gmail.com
Signed-off-by: Tom Seewald <tseewald@gmail.com>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/siw/siw_qp_rx.c