Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3603757ybv; Tue, 25 Feb 2020 04:12:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzj2FzPFZ2/x2V82ODxLuaNm/97DQThnl4z23FbPYbbtDXIe1n+iGSxPNUiWugqcHSHSEHH X-Received: by 2002:a54:4396:: with SMTP id u22mr3250937oiv.128.1582632748399; Tue, 25 Feb 2020 04:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582632748; cv=none; d=google.com; s=arc-20160816; b=eG4mZ+NZnf5B7azprjHGltBFOXFEnunqHVDFgHp6WTFOXyyM0AblQGFN8NexRzbPup sPT3NU9tg1639wtQ3bo3ELsx5b6hT5gmuoSKlutg/Fc94o2E9lSS//gd1DoHC2J+jO6u WvvhfCNNr9cdQ3oKOlXzTP0li6ZBFLznxxw7pqdGkoHJFX5NGc2o3hVws6zZ2evw4JgX WHKNw7earyUfuQM7YlAMn+UeKSphtnBg+Oiaih6RQG9GzRRHAgPHI0ELk5/fw+thFAkk H2r9+2TDEqwournJPt7Obz/76peaTahIAgdi/8EmSFv536ZaB0so5Lw1d/R8HEXcRaUj Fg1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=08sJ0p764WpC9VXzCjK0OX/0j9ek/zNoqprgBJ/BgB4=; b=i7MVz54XuMJj+j92pTIYrlMvLFZnY4WJ8U63/0QbWdAMytcB8B/ZGyADh4ghsmM4dG 4ADlfwfrn+KTbluN8N9r5YUkveDRJSzzKKExQGWSN4FluwRi21d4DFPDxoTLzjrk5tb3 greC50BHEJ3CPTH2XXcxuWLUu8yhPKk4nqqCVLLYhuzD6njRVlHEzst9vK4AoGh0YhZi DAbmGxrM+3v86CrvFfaWxdkjmOdwtCvXGewaPAc6zWngVtxU/AKmLHwKTHM20wuHAKl8 IEVmLojp3ykUzuDdj6s9zLt9nqJUBz86S9rh6GfupPEgakY1Pd3fv7KamSQGl28ZqjMX kb2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S6kt1zJW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si6318276oie.87.2020.02.25.04.12.16; Tue, 25 Feb 2020 04:12:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S6kt1zJW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730530AbgBYL4e (ORCPT + 99 others); Tue, 25 Feb 2020 06:56:34 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:33857 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729505AbgBYL4d (ORCPT ); Tue, 25 Feb 2020 06:56:33 -0500 Received: by mail-oi1-f194.google.com with SMTP id l136so12269286oig.1 for ; Tue, 25 Feb 2020 03:56:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=08sJ0p764WpC9VXzCjK0OX/0j9ek/zNoqprgBJ/BgB4=; b=S6kt1zJWxZB2GTmtEiug9PG0YaQcP88HT4NJkgK/hddPAS9kquyrMoipcjL9Fk8u67 /ypRGwQyXQMJapl0e+8QbfvPM5PatbPfbdep2FGMxWO0oJtbfFBQPZCpx2z71xEEUV9u 1KS0TqV/BaWSosrRa5v865hsclvU4vCR7XYfEYy9oCU7XvUc4PhII3qUvt/trDlVBjq2 mAlXTDaWiIqlWnfeT9+WaMLfnoD9n0v+E+fLwdSQQaTh+zJI8M0l75HW+/mWS7t6TDsz 53ay2AFNDGvs3SvEOTYWjYAC63NY5aCgHQdMq9Jr23T5VaYta3E/UeSDfCddeUO2MLYr r9kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=08sJ0p764WpC9VXzCjK0OX/0j9ek/zNoqprgBJ/BgB4=; b=SPCRIanvKsQ1HygJVrZddD39ODgnHfTz8i+vzgsB0SRel+CdlibL1ZribDF28pdTvg +af/ClC5eRWLyCOpXf/AI8SrjY9+50e6XSs/EXXxv+d6Kg4+7bP8B7wOH9vYypO7QckT VcgNAy4K/mwIoJLeReS5OAnaqmmDVU9HbwS0OWwJ8DkzX549syfAjhdRj9UhiZ5eDYYo UPsUD6HTxZvBDOyhXjiq8o2gUJVy9RfvlsdQH354qaYuwk0Jf1vVsV+ygjWjea1jYzjf N44vLtNoux3pKMJeqeQ0hY/bgHo4zt/eEQbAX3Ggku+e1J0/JRUtmsDtmxcAq5q4we7c R1pA== X-Gm-Message-State: APjAAAUcnTaKQT80VSLrK1pgRVs2gC/buKD9ktdgrUcbUsod+odf6vBj os2Qo6Cjy7aebDBPrntD+QsJpSAsJ3MefIKeo3Q= X-Received: by 2002:aca:c709:: with SMTP id x9mr3041022oif.130.1582631792885; Tue, 25 Feb 2020 03:56:32 -0800 (PST) MIME-Version: 1.0 References: <20200223231711.157699-1-jbi.octave@gmail.com> <20200223231711.157699-28-jbi.octave@gmail.com> In-Reply-To: <20200223231711.157699-28-jbi.octave@gmail.com> From: Oded Gabbay Date: Tue, 25 Feb 2020 13:55:50 +0200 Message-ID: Subject: Re: [PATCH 27/30] habanalabs: Add missing annotation for goya_hw_queues_lock() To: Jules Irenge Cc: boqun.feng@gmail.com, "Linux-Kernel@Vger. Kernel. Org" , Arnd Bergmann , Greg Kroah-Hartman , Tomer Tayar , Omer Shpigelman , Dalit Ben Zoor Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 1:18 AM Jules Irenge 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 > --- > 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 Applied to -next Thanks, Oded