Re: [PATCH] floppy: fix function pointer cast warnings

From: Jens Axboe
Date: Tue Feb 13 2024 - 10:56:13 EST



On Tue, 13 Feb 2024 10:59:07 +0100, Arnd Bergmann wrote:
> clang-16 complains about a control flow integrity (kcfi) violation
> casting between incompatible pointers:
>
> drivers/block/floppy.c:2001:11: error: cast from 'void (*)(void)' to 'done_f' (aka 'void (*)(int)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
> 2001 | .done = (done_f)empty
> | ^~~~~~~~~~~~~
>
> [...]

Applied, thanks!

[1/1] floppy: fix function pointer cast warnings
commit: 7789bf05529889a39bcf4cd17a68521de063b88b

Best regards,
--
Jens Axboe