]> git.baikalelectronics.ru Git - kernel.git/commit
block: Fix the type of 'sts' in bsg_queue_rq()
authorBart Van Assche <bvanassche@acm.org>
Wed, 18 Dec 2019 00:23:29 +0000 (16:23 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 18:52:01 +0000 (11:52 -0700)
commit866c17ee10138b0544b84b990c8c3774a6f03706
tree0b8043315d2526a868b3b1bc79fb8d14ce52f200
parent9eacc580e851dcd4473fec3b7646cdadca4e6088
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 <mwilck@suse.com>
Fixes: f5bf56825f5e ("block: drop device references in bsg_queue_rq()")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bsg-lib.c