]> git.baikalelectronics.ru Git - kernel.git/commit
block/floppy: Fix a sparse warning
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Jul 2022 18:06:41 +0000 (11:06 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Jul 2022 18:14:31 +0000 (12:14 -0600)
commitc5004afe2d3b97c6a65ebfbc9d13484e84cfeeaa
treeed03170dd09557c9d2859a1817e3d4b682bddec5
parentec75804c51e84310d7828a9b8787173129c49223
block/floppy: Fix a sparse warning

Since the type of request.cmd_flags has been changed from u32 into
blk_opf_t, use the __force keyword when casting to an integer type to
prevent that sparse warns about this cast.

Cc: Denis Efremov <efremov@linux.com>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220714180729.1065367-16-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/floppy.c