summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-24 00:17:09 +0100
committerOded Gabbay <oded.gabbay@gmail.com>2020-03-24 09:54:17 +0100
commit8a7a88c10c18d98150e1261626f3e90f68affb65 (patch)
tree80febd64b98042b9529378e95220ddce4f4db422 /drivers/misc
parenthabanalabs: Add missing annotation for goya_hw_queues_lock() (diff)
downloadlinux-8a7a88c10c18d98150e1261626f3e90f68affb65.tar.xz
linux-8a7a88c10c18d98150e1261626f3e90f68affb65.zip
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')
-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;