summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-24 02:17:09 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2020-03-24 11:54:17 +0300
commit8a7a88c10c18d98150e1261626f3e90f68affb65 (patch)
tree80febd64b98042b9529378e95220ddce4f4db422 /drivers/misc/habanalabs
parentcf87f966d28ad574de76bbbac15725cb2b008a66 (diff)
downloadlinux-8a7a88c10c18d98150e1261626f3e90f68affb65.tar.xz
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 <jbi.octave@gmail.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs')
-rw-r--r--drivers/misc/habanalabs/goya/goya.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c
index 512653ec45c9..9d4295cc83cf 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;