[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <170790268857.386715.10695124519923198536.b4-ty@kernel.org>
Date: Wed, 14 Feb 2024 11:24:48 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Bart Van Assche <bvanassche@....org>, Arnd Bergmann <arnd@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, Jason Gunthorpe <jgg@...pe.ca>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>, Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
"Nicholas A. Bellinger" <nab@...ingtidesystems.com>,
linux-rdma@...r.kernel.org, target-devel@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH] RDMA/srpt: fix function pointer cast warnings
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@...nel.org>
Powered by blists - more mailing lists