linux-stable/drivers/infiniband
Arnd Bergmann e333db03ab RDMA/srpt: fix function pointer cast warnings
[ Upstream commit eb5c7465c3 ]

clang-16 notices that srpt_qp_event() gets called through an incompatible
pointer here:

drivers/infiniband/ulp/srpt/ib_srpt.c:1815:5: error: cast from 'void (*)(struct ib_event *, struct srpt_rdma_ch *)' to 'void (*)(struct ib_event *, void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
 1815 |                 = (void(*)(struct ib_event *, void*))srpt_qp_event;

Change srpt_qp_event() to use the correct prototype and adjust the
argument inside of it.

Fixes: a42d985bd5 ("ib_srpt: Initial SRP Target merge for v3.3-rc1")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240213100728.458348-1-arnd@kernel.org
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:06:10 +01:00
..
core RDMA/cma: Fix truncation compilation warning in make_cma_ports 2023-10-10 21:45:02 +02:00
hw RDMA/bnxt_re: Return error for SRQ resize 2024-03-01 13:06:10 +01:00
sw RDMA/rxe: Fix the use-before-initialization error of resp_pkts 2023-06-21 15:39:58 +02:00
ulp RDMA/srpt: fix function pointer cast warnings 2024-03-01 13:06:10 +01:00
Kconfig IB/ucm: fix UCM link error 2018-08-21 16:56:32 -06:00
Makefile