From: Bart Van Assche Date: Wed, 18 Dec 2019 00:23:29 +0000 (-0800) Subject: block: Fix the type of 'sts' in bsg_queue_rq() X-Git-Tag: v5.10.7~3443^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c44a4edb20938c85b64a256661443039f5bffdea;p=platform%2Fkernel%2Flinux-rpi.git 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 Fixes: d46fe2cb2dce ("block: drop device references in bsg_queue_rq()") Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- diff --git a/block/bsg-lib.c b/block/bsg-lib.c index 347dda1..6cbb792 100644 --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -266,7 +266,7 @@ static blk_status_t bsg_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *req = bd->rq; struct bsg_set *bset = container_of(q->tag_set, struct bsg_set, tag_set); - int sts = BLK_STS_IOERR; + blk_status_t sts = BLK_STS_IOERR; int ret; blk_mq_start_request(req);