diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-02-17 05:39:15 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-02-17 05:39:15 +0300 |
commit | f3ca73862453ac1e64fc6968a14bf66d839cd2d8 (patch) | |
tree | 37232370568bec788c65bc085691992f67103f0a /drivers/block | |
parent | b6a4bdcda430e3ca43bbb9cb1d4d4d34ebe15c40 (diff) | |
download | linux-f3ca73862453ac1e64fc6968a14bf66d839cd2d8.tar.xz |
block: use proper return value from bio_failfast()
kernel test robot complains about a type mismatch:
block/blk-merge.c:984:42: sparse: expected restricted blk_opf_t const [usertype] ff
block/blk-merge.c:984:42: sparse: got unsigned int
block/blk-merge.c:1010:42: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted blk_opf_t const [usertype] ff @@ got unsigned int @@
block/blk-merge.c:1010:42: sparse: expected restricted blk_opf_t const [usertype] ff
block/blk-merge.c:1010:42: sparse: got unsigned int
because bio_failfast() is return an unsigned int rather than the
appropriate blk_opt_f type. Fix it up.
Fixes: 3ce6a115980c ("block: sync mixed merged request's failfast with 1st bio's")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202302170743.GXypM9Rt-lkp@intel.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions