linux/drivers/infiniband/sw/siw
Arnd Bergmann 5244ca8867 RDMA/siw: Fix pointer cast warning
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>
2022-12-16 16:07:38 -04:00
..
iwarp.h RDMA: Delete not-used static inline functions 2021-03-22 09:31:19 -03:00
Kconfig RDMA/siw: Add missing Kconfig selections 2022-09-01 10:12:01 +03:00
Makefile
siw.h RDMA/siw: Fix QP destroy to wait for all references dropped. 2022-09-20 21:23:52 +03:00
siw_cm.c RDMA/siw: Fix duplicated reported IW_CM_EVENT_CONNECT_REPLY event 2022-07-18 14:20:52 +03:00
siw_cm.h
siw_cq.c RDMA/siw: Set defined status for work completion with undefined status 2022-11-15 16:47:00 -04:00
siw_main.c RDMA/siw: Enable siw on tunnel devices 2022-05-11 13:52:38 -03:00
siw_mem.c RDMA/siw: Fix a use after free in siw_alloc_mr 2021-04-27 15:19:21 -03:00
siw_mem.h RDMA: Delete not-used static inline functions 2021-03-22 09:31:19 -03:00
siw_qp.c RDMA/siw: Fix QP destroy to wait for all references dropped. 2022-09-20 21:23:52 +03:00
siw_qp_rx.c RDMA/siw: Always consume all skbuf data in sk_data_ready() upcall. 2022-09-20 21:21:18 +03:00
siw_qp_tx.c RDMA/siw: Fix pointer cast warning 2022-12-16 16:07:38 -04:00
siw_verbs.c RDMA/siw: Fix immediate work request flush to completion queue 2022-11-09 15:26:49 +02:00
siw_verbs.h RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00