From: Jules Irenge Date: Sun, 23 Feb 2020 23:17:09 +0000 (+0000) Subject: habanalabs: Add missing annotation for goya_hw_queues_unlock() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8a7a88c10c18d98150e1261626f3e90f68affb65;p=linux.git habanalabs: Add missing annotation for goya_hw_queues_unlock() Sparse reports a warning at goya_hw_queues_unlock() warning: context imbalance in goya_hw_queues_unlock() - unexpected unlock The root cause is a missing annotation at goya_hw_queues_unlock() Add the missing __releases(&goya->hw_queues_lock) annotation Signed-off-by: Jules Irenge Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c index 512653ec45c9d..9d4295cc83cfe 100644 --- a/drivers/misc/habanalabs/goya/goya.c +++ b/drivers/misc/habanalabs/goya/goya.c @@ -5218,6 +5218,7 @@ static void goya_hw_queues_lock(struct hl_device *hdev) } static void goya_hw_queues_unlock(struct hl_device *hdev) + __releases(&goya->hw_queues_lock) { struct goya_device *goya = hdev->asic_specific;