habanalabs: Add missing annotation for goya_hw_queues_unlock()
authorJules Irenge <jbi.octave@gmail.com>
Sun, 23 Feb 2020 23:17:09 +0000 (23:17 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 24 Mar 2020 08:54:17 +0000 (10:54 +0200)
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>
drivers/misc/habanalabs/goya/goya.c

index 512653e..9d4295c 100644 (file)
@@ -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;