android_kernel_motorola_sm6375/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann f170d4bd38 RDMA/siw: Fix pointer cast warning
[ Upstream commit 5244ca88671a1981ceec09c5c8809f003e6a62aa ]

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: 0d1b756acf60 ("RDMA/siw: Pass a pointer to virt_to_page()")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Bernard Metzler <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-01-18 11:41:29 +01:00
..
core RDMA/nldev: Add checks for nla_nest_start() in fill_stat_counter_qps() 2023-01-18 11:41:20 +01:00
hw RDMA/hfi1: Fix error return code in parse_platform_config() 2023-01-18 11:41:20 +01:00
sw RDMA/siw: Fix pointer cast warning 2023-01-18 11:41:29 +01:00
ulp IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces 2023-01-18 11:41:21 +01:00
Kconfig
Makefile