From: Jules Irenge Date: Sun, 23 Feb 2020 23:17:08 +0000 (+0000) Subject: habanalabs: Add missing annotation for goya_hw_queues_lock() X-Git-Tag: v5.7-rc1~103^2~20^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf87f966d28ad574de76bbbac15725cb2b008a66;p=thirdparty%2Fkernel%2Flinux.git habanalabs: Add missing annotation for goya_hw_queues_lock() Sparse reports a warning at goya_hw_queues_lock() warning: context imbalance in goya_hw_queues_lock() - wrong count at exit The root cause is a missing annotation at goya_hw_queues_lock() Add the missing __acquires(&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 19bce06e5fc0b..512653ec45c9d 100644 --- a/drivers/misc/habanalabs/goya/goya.c +++ b/drivers/misc/habanalabs/goya/goya.c @@ -5210,6 +5210,7 @@ static bool goya_is_device_idle(struct hl_device *hdev, u32 *mask, } static void goya_hw_queues_lock(struct hl_device *hdev) + __acquires(&goya->hw_queues_lock) { struct goya_device *goya = hdev->asic_specific;