Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3605144ybv; Tue, 25 Feb 2020 04:13:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxgwXG9HrNJBrbFVIzPi5RCy4v+p+/d1od3AidyAebjzIAcyUHslW3pqZUl5KsxHyt/CK2y X-Received: by 2002:aca:f305:: with SMTP id r5mr3333110oih.174.1582632823471; Tue, 25 Feb 2020 04:13:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582632823; cv=none; d=google.com; s=arc-20160816; b=wjRoYKlqO6uf7fPNTlxSlwz3YLiCGjGwwt0yi3s165MPOL2dbOMhcZU79otJ2BZdEK q9eYN8j3AQ0tAW5fPO/jWXqGFSLs7RsgAZE3KnZZ6NBAOsuLbZK2aDw5GI82N7xvccnS nTvdLwtRXeMpC38PwnLiiTKZywAbG4E7KTSUDROPyp2xKVOon6jOKXp4xDm9YqcJER/Y roEDnv6YheZaoe3wBDyDxQSJn8wqxeiry7Dp5CoNmflROKH7YbpWO1aKivtbQ+ahAlpm lOAwcDqRfop3meBDGc2sq/Cx6632HEDlotlTlM6Ud6NEM6nLyBAr+1nBwhwYp6qoyxK3 PUIw== 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=4F3T1pM37h27ltU9k9yDPyuOsl3lRH1C/Wcw75sxknc=; b=PyTpYvxrDeeH6EwhEMoZQ2xI0w8JJfENslu6l/ymNdjY53F4L+ZBMUvXVdFJR9bLCu 8DfufpWS6I5z91ZRSUMC9ov2sxaOq1qAiHPY8V3iwCaegtyQDSb4mhlup3xTxDtnesn+ pPfCxvxnhTFimNKxlIvWuRXPcL4zn8SBu/y4HeIbqDGK1NceBSgcTn722mXylqb1d7kA uBMNXTZIx23dpBrNadEy4CS3qMbGS7JbinFQhe/iSPyMYWX6tal1I51VYoP+r9/1M7Lz 5gDw9Px3EgwcXeEcfr861b3TACl9pnsNU9aCou7vC8+dJwYZB8/cluGzM+Li7oF6M6Te E9Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p3LU5Tbq; 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 o4si7945350otp.200.2020.02.25.04.13.30; Tue, 25 Feb 2020 04:13:43 -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=p3LU5Tbq; 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 S1730548AbgBYL4s (ORCPT + 99 others); Tue, 25 Feb 2020 06:56:48 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:44961 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgBYL4s (ORCPT ); Tue, 25 Feb 2020 06:56:48 -0500 Received: by mail-ot1-f66.google.com with SMTP id h9so11771056otj.11 for ; Tue, 25 Feb 2020 03:56:47 -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=4F3T1pM37h27ltU9k9yDPyuOsl3lRH1C/Wcw75sxknc=; b=p3LU5TbqY5xN/ik66fv+e0RRzcD0MeKuz3WyueYlhkJRgsAW9hGv/u/Ems1Vm55R+D FoeCwxfbmNRN7lXUTpZH6NxLpMGJkzzt2mfD0eREcxGX3jx7T41jhPvxs6Cn23ECsYAe e2/+l+s+pL1RxvvTX6oySxiiNHroACZG0DbnaeOYkf1QXk5+YLo+dgrOa4fSvnPWP9Fm rAsMERiuPJ2IhgGLUgvWQXTYg3LY6mH1QK5we6NNOZLW+S/JvqAvZKoa4U6iUxgiO1RN xk7l2ZZQXuO3MRA1a8RfjlRfGhVAsviCMr3bv5YNKGhRfMTcWGptJ7cBZeQu+tnTP9bG /D/A== 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=4F3T1pM37h27ltU9k9yDPyuOsl3lRH1C/Wcw75sxknc=; b=uSszjYa6AG712PLC6889r5OjazVsM7FTgGygKGI4YQxXh5FGwIIa/w7W/UbjO7EDBh DuQ2ik+RGLtVSXY4YqNk0CjwwsfV8uY+ZdUlqXBVuMjYRra4gEbMNXSYQeNaOF4m8R1Y kNzLb9caQ/HbYQC8aUcSLKeVYxOilwoq1kTLd2NJlkrhoBgnrFZF6KIh/2myZGrv/pMh MITXPZPBYeGRzhBj9V8C6RZtJiPWfNqSkiwihqQ0dmZLAdnTWvRP9GnkcncjLnVrJdV4 I0k91G7w7Vq+mxpwrbf6hpZno0nyDInvCYjFdiyZYScqQ2bCiaybRhhRRO2EV0KP+dAm VAzA== X-Gm-Message-State: APjAAAXU1tBc708A5I2NWF1qiBMEdqwSr2uBIl8kR4pzHbcKAynVZkx6 i+Jwzol7vg4lsOOhQVWLgCYDvah+Y/UzpyZPVFw= X-Received: by 2002:a9d:754e:: with SMTP id b14mr28525076otl.59.1582631807140; Tue, 25 Feb 2020 03:56:47 -0800 (PST) MIME-Version: 1.0 References: <20200223231711.157699-1-jbi.octave@gmail.com> <20200223231711.157699-29-jbi.octave@gmail.com> In-Reply-To: <20200223231711.157699-29-jbi.octave@gmail.com> From: Oded Gabbay Date: Tue, 25 Feb 2020 13:56:04 +0200 Message-ID: Subject: Re: [PATCH 28/30] habanalabs: Add missing annotation for goya_hw_queues_unlock() 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_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 > --- > 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 8ca7ee57cbc1..6138b461d0f8 100644 > --- a/drivers/misc/habanalabs/goya/goya.c > +++ b/drivers/misc/habanalabs/goya/goya.c > @@ -5081,6 +5081,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; > > -- > 2.24.1 > This patch is: Reviewed-by: Oded Gabbay Applied to -next Thanks, Oded