Skip to content

Commit

Permalink
habanalabs: Add missing annotation for goya_hw_queues_unlock()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jules Irenge authored and Oded Gabbay committed Mar 24, 2020
1 parent cf87f96 commit 8a7a88c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/misc/habanalabs/goya/goya.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8a7a88c

Please sign in to comment.