OSDN Git Service

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)
commit23f8ae7148cc32287364741e32b20f37730114aa
treeed03170dd09557c9d2859a1817e3d4b682bddec5
parent86563de87447ad9458fda9d1862c5ba333c8ab2e
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