Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: Fix the type of 'sts' in bsg_queue_rq()
This patch fixes the following sparse warnings: block/bsg-lib.c:269:19: warning: incorrect type in initializer (different base types) block/bsg-lib.c:269:19: expected int sts block/bsg-lib.c:269:19: got restricted blk_status_t [usertype] block/bsg-lib.c:286:16: warning: incorrect type in return expression (different base types) block/bsg-lib.c:286:16: expected restricted blk_status_t block/bsg-lib.c:286:16: got int [assigned] sts Cc: Martin Wilck <[email protected]> Fixes: d46fe2c ("block: drop device references in bsg_queue_rq()") Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information