linux-stable/drivers/infiniband
Arnd Bergmann 2246ac03dd RDMA/siw: Fix pointer cast warning
[ Upstream commit 5244ca8867 ]

The previous build fix left a remaining issue in configurations with
64-bit dma_addr_t on 32-bit architectures:

drivers/infiniband/sw/siw/siw_qp_tx.c: In function 'siw_get_pblpage':
drivers/infiniband/sw/siw/siw_qp_tx.c:32:37: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
   32 |                 return virt_to_page((void *)paddr);
      |                                     ^

Use the same double cast here that the driver uses elsewhere to convert
between dma_addr_t and void*.

Fixes: 0d1b756acf ("RDMA/siw: Pass a pointer to virt_to_page()")
Link: https://lore.kernel.org/r/20221215170347.2612403-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:45 +01:00
..
core RDMA/nldev: Fix failure to send large messages 2022-12-31 13:32:36 +01:00
hw RDMA/hns: Fix XRC caps on HIP08 2022-12-31 13:32:37 +01:00
sw RDMA/siw: Fix pointer cast warning 2022-12-31 13:32:45 +01:00
ulp IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces 2022-12-31 13:32:38 +01:00
Kconfig RDMA: Disable IB HW for UML 2022-12-31 13:32:36 +01:00
Makefile