Re: [PATCH] RDMA/srpt: fix function pointer cast warnings

From: Leon Romanovsky
Date: Wed Feb 14 2024 - 04:25:14 EST



On Tue, 13 Feb 2024 11:07:13 +0100, Arnd Bergmann wrote:
> 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.
>
> [...]

Applied, thanks!

[1/1] RDMA/srpt: fix function pointer cast warnings
https://git.kernel.org/rdma/rdma/c/eb5c7465c32401

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>