From: Bart Van Assche Date: Mon, 26 Sep 2016 02:54:38 +0000 (-0700) Subject: bsg: Add sparse annotations to bsg_request_fn() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbb3ab03563cbf0880b1801a238b3e3964e364a1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bsg: Add sparse annotations to bsg_request_fn() Avoid that sparse complains about unbalanced lock actions. Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- diff --git a/block/bsg-lib.c b/block/bsg-lib.c index 650f427d915b..b2a61e3ecb14 100644 --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -161,6 +161,8 @@ failjob_rls_job: * Drivers/subsys should pass this to the queue init function. */ void bsg_request_fn(struct request_queue *q) + __releases(q->queue_lock) + __acquires(q->queue_lock) { struct device *dev = q->queuedata; struct request *req;