diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-02-13 10:59:07 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-02-13 08:55:33 -0700 |
commit | 7789bf05529889a39bcf4cd17a68521de063b88b (patch) | |
tree | cebba2efa148952973d26aac016d2293a25afda6 /drivers/block/drbd | |
parent | 921e81db524d17db683cc29aed7ff02f06ea3f96 (diff) | |
download | linux-stable-7789bf05529889a39bcf4cd17a68521de063b88b.tar.gz linux-stable-7789bf05529889a39bcf4cd17a68521de063b88b.tar.bz2 linux-stable-7789bf05529889a39bcf4cd17a68521de063b88b.zip |
floppy: fix function pointer cast warnings
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
| ^~~~~~~~~~~~~
Just add another empty function with the correct prototype as a
workaround.
The warning is for code that was added before the start of the normal
git history, but I tracked it done to an early change in the reconstructed
linux-history.git.
Fixes: 598a477afe06 ("Import 1.1.41")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240213095918.455478-1-arnd@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/drbd')
0 files changed, 0 insertions, 0 deletions