Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp106255ybh; Tue, 10 Mar 2020 20:28:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtoU3jx5LIE1t3G8c/vv7/Of4PbgTwhta4ZpZ6XRrY1HqqaToBb5y87yv5nLYZWdXTt1Pu6 X-Received: by 2002:aca:3542:: with SMTP id c63mr541915oia.135.1583897336830; Tue, 10 Mar 2020 20:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583897336; cv=none; d=google.com; s=arc-20160816; b=EAnC4lZOHFimYtg/2i9W6I8y/Qnig1lAhELx9MzcD/7l+JpgbwL0nw/QSo7jid37+H V9xtPo4eDzfY21VscrZ1vAieAZ1PI5UryyEWCjHpMreLS7GnsxW0W3SJ2zwiNI24pDIN RAfkbV16nZxxaIShmyNLOu+fINbyAhAbk+admiTlWa/dq8aEngq0qEiMUAFE/7FOBjo4 66wv7WA/Qmqj3kUTV0TXkbB5JtjwZYkCYTU3fO037L0zvMCODxA1m4QSfc66QLRz1RNC d9tZylwpsT5G0pKBusACaHPy3e+dpIKIVOAtHuZtA2ERniOE5wLMzmqfIzF8DuLuo6q6 5BGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=b+Ma1H6/IShcWZqpJAo1sroDdFj4Te1+J3eJjPIM5JU=; b=bdis2Q9XhFl06LeupKujRsNRNB8GMr+1QhHOkACCzt0IwSHeRIfuO4ZxH+caCFt5dc GvFH/1B/wdb+yIKPx/45UKz4c6AE1fPZRxCQSda4p5+wuvF06bZPc8VGWxSCbzAra0Jh eZNDwaMbTsIcva1aUcU6lyk1ceFwr3g0RZyMP+aU8dyMH/4aarG2QA1Ke+B8GraBJdch Yzne3o0czmexLnHu5MS8E1Qkwu2mzCh1dI/JLpwcC1vPMPfw/gtqzB2rlHx8/JmdW8nr ZbG6Avymjmgtvus9WrfcR1gAibEq32nAiBwMIERKQw7othXqZ9IMGi4GuFritFiWRt3b Xi+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=ECHIVNCT; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rr04A5h7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si404898otn.101.2020.03.10.20.28.44; Tue, 10 Mar 2020 20:28:56 -0700 (PDT) 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=@sakamocchi.jp header.s=fm1 header.b=ECHIVNCT; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rr04A5h7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728025AbgCKD0y (ORCPT + 99 others); Tue, 10 Mar 2020 23:26:54 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:35191 "EHLO wnew2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727506AbgCKD0x (ORCPT ); Tue, 10 Mar 2020 23:26:53 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id C08D56C5; Tue, 10 Mar 2020 23:19:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 10 Mar 2020 23:19:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=b+Ma1H6/IShcWZqpJAo1sroDdFj 4Te1+J3eJjPIM5JU=; b=ECHIVNCT6Daf9QX6h78auESsTvlreFKUsOl7YL/deIR DSKjlSxqc0pUdQDeWk9m8j0x/fp9VJlYhyjt0nByJumbzTGfu/0Wj3vplgfdTi6M 4uRr9S1kVxp4FZSRI95dmyGMUbp1QFYVdaEUBasiPg9Hjd3X91tGEvRBxpfKcvtB oe8HGZePb7sitte8q9RvjRHSIe5FEbb6QlhOejhRNbDXZRNDPgRw9g53IoPnJC0t vs//S60QIOOJyXid7kyy4QOkQdBCg8bYTkzImzN7XLz3wbz3VWP3F54jLS0iekb6 0O7rV8hwBawPi/wuvfQ8VXHedcSIy1a7Mo9gyfzBhqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=b+Ma1H 6/IShcWZqpJAo1sroDdFj4Te1+J3eJjPIM5JU=; b=rr04A5h7BMT9Yj65iF6YDE ECW6/MTrQ27G7qS9nzLXGSzUhxsev/OnnstAVSVWRkGBZkzJTUNJMhGCMiIbFPa1 t8oLSlqv9MT5IV1+qyfPZdniPIWxc6DGovX/mRPCIXQbyUySOHfmA9bcItA64CNu ZglX+MDj09GgJhS2qTfgmtc6WJY4QCEUrdNSahqFmD2NIujb4iWAUI19B2aiMF4b weI+pancvkoiZGslUBJEjf2spiHkfEw2skOlfYswPD6hZq4yCalNey0R31ecO8Pr oBZk5Tkj+ZeA/WK+3NRYkNepwOIn1J90G+kr3W3mglvmI/XJpENb6rb6x3mdlxJA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvuddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepvfgrkhgr shhhihcuufgrkhgrmhhothhouceoohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhird hjpheqnecukfhppedugedrfedrjeegrdduieeknecuvehluhhsthgvrhfuihiivgepuden ucfrrghrrghmpehmrghilhhfrhhomhepohdqthgrkhgrshhhihesshgrkhgrmhhotggthh hirdhjph X-ME-Proxy: Received: from workstation (ae074168.dynamic.ppp.asahi-net.or.jp [14.3.74.168]) by mail.messagingengine.com (Postfix) with ESMTPA id 8B70A3060F09; Tue, 10 Mar 2020 23:19:40 -0400 (EDT) Date: Wed, 11 Mar 2020 12:19:38 +0900 From: Takashi Sakamoto To: Jules Irenge Cc: boqun.feng@gmail.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , Alexios Zavras , Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , "moderated list:FIREWIRE AUDIO DRIVERS and IEC 61883-1/6 PACKET..." Subject: Re: [PATCH 7/8] ALSA: firewire-tascam: Add missing annotation for tscm_hwdep_read_queue() Message-ID: <20200311031937.GB8197@workstation> Mail-Followup-To: Jules Irenge , boqun.feng@gmail.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, Clemens Ladisch , Jaroslav Kysela , Takashi Iwai , Alexios Zavras , Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , "moderated list:FIREWIRE AUDIO DRIVERS and IEC 61883-1/6 PACKET..." References: <0/8> <20200311010908.42366-1-jbi.octave@gmail.com> <20200311010908.42366-8-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200311010908.42366-8-jbi.octave@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2020 at 01:09:07AM +0000, Jules Irenge wrote: > Sparse reports a warning at tscm_hwdep_read_queue() > > warning: context imbalance in tscm_hwdep_read_queue() - unexpected unlock > > The root cause is the missing annotation at tscm_hwdep_read_queue() > Add the missing __releases(&tscm->lock) annotation > > Signed-off-by: Jules Irenge > --- > sound/firewire/tascam/tascam-hwdep.c | 1 + > 1 file changed, 1 insertion(+) This looks good. Acked-by: Takashi Sakamoto > diff --git a/sound/firewire/tascam/tascam-hwdep.c b/sound/firewire/tascam/tascam-hwdep.c > index c29a97f6f638..9801e33e7f2a 100644 > --- a/sound/firewire/tascam/tascam-hwdep.c > +++ b/sound/firewire/tascam/tascam-hwdep.c > @@ -36,6 +36,7 @@ static long tscm_hwdep_read_locked(struct snd_tscm *tscm, char __user *buf, > > static long tscm_hwdep_read_queue(struct snd_tscm *tscm, char __user *buf, > long remained, loff_t *offset) > + __releases(&tscm->lock) > { > char __user *pos = buf; > unsigned int type = SNDRV_FIREWIRE_EVENT_TASCAM_CONTROL; > -- > 2.24.1 Regards Takashi Sakamoto