null_blk: Fix two sparse warnings
authorBart Van Assche <bvanassche@acm.org>
Fri, 10 May 2024 20:18:16 +0000 (13:18 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 13 May 2024 23:51:17 +0000 (17:51 -0600)
commit25260555b118e71c64dfdb6786144f654fe1a27d
treeadabe4fc9177db60881b8d0f71718e177ecae954
parent928b607d1a0941f02899e5490201ec071d5d4ff5
null_blk: Fix two sparse warnings

Fix the following sparse warnings:

drivers/block/null_blk/main.c:1243:35: warning: incorrect type in return expression (different base types)
drivers/block/null_blk/main.c:1243:35:    expected int
drivers/block/null_blk/main.c:1243:35:    got restricted blk_status_t
drivers/block/null_blk/main.c:1291:30: warning: incorrect type in return expression (different base types)
drivers/block/null_blk/main.c:1291:30:    expected restricted blk_status_t
drivers/block/null_blk/main.c:1291:30:    got int

Cc: Christoph Hellwig <hch@lst.de>
Cc: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240510201816.24921-1-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c
drivers/block/null_blk/trace.h