Re: [PATCH 27/30] habanalabs: Add missing annotation for goya_hw_queues_lock()

From: Oded Gabbay
Date: Tue Feb 25 2020 - 06:56:35 EST


On Mon, Feb 24, 2020 at 1:18 AM Jules Irenge <jbi.octave@xxxxxxxxx> wrote:
>
> 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 <jbi.octave@xxxxxxxxx>
> ---
> drivers/misc/habanalabs/goya/goya.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c
> index 7344e8a222ae..8ca7ee57cbc1 100644
> --- a/drivers/misc/habanalabs/goya/goya.c
> +++ b/drivers/misc/habanalabs/goya/goya.c
> @@ -5073,6 +5073,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;
>
> --
> 2.24.1
>
This patch is:
Reviewed-by: Oded Gabbay <oded.gabbay@xxxxxxxxx>
Applied to -next
Thanks,
Oded