Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1344080ybz; Thu, 16 Apr 2020 07:34:06 -0700 (PDT) X-Google-Smtp-Source: APiQypIuxJ7x+2x0BhlBC9M+zQQKWx/2KwtIx15OqSBTiEgHRUkM86eQa51d69CepMUemuMj5VEh X-Received: by 2002:a17:907:2069:: with SMTP id qp9mr10283140ejb.137.1587047645912; Thu, 16 Apr 2020 07:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587047645; cv=none; d=google.com; s=arc-20160816; b=0HyPovFeNzC09+ObUAMBuapQSLAlq/bZB1UQtws9DZz+WCcI4vUhQm9RAdiBF6Mxq9 irq0GSx0VXk0h0lsr6NrLAWYZds0N9AcxcEdeW9+PdoRw011XO3bdOj6oy8fa9mZlp1d mN2K8xwqWxHM0Cm3l05ohDK3sQ0sp6gFZYNgz/vTvH4HERynqUeDVLJDaiM58rmGnMfM Mm0D4SozF2y+CeVOlMHH0GHqwWypIotrx/IzI9VL58DhhmzcwfwqcLZoef3PDvSjzOFn zol/nUPA6XtjB6EmTg71iatQFUMfOoFLtrpPFowv2xPK5SvAH49DrUULkrjsUXIZDWZF jmuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IYU1v/B2AMvtScM609YGlvcbOzZ9Xqx8oxWNiU2ZyFs=; b=F/CAxEqhGqLr0B1uiTZSvBA+s4vepYncMhfH01HUPTYihx1Yj7ypME1la9SfZFNHAs aMKzr4MWkVmm1EsIRbo6O+qwprG0omztdzaIeTVBnYJkNZPohWNAQ76rq5cL5fqPZxHi 0YzP7Y8CaDyH3r2Hvg6vU+PSqebIYE70bveRhUaOUJxi4Ioje6juSQOuZ3qN6Upun1QP RH8WNKjFzHUOmJXgp8RyCAzS9hKru9hQPP/shHKI5CMnV/6LcncaCqcqXaXse5ssZEKh jkElRqjKhIFqksiPwRrzU0Lrj4Ww+rJMz6gvnCAvFZMe9Jo6bVPbeqQGUFC9ICt+rvgW yAkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0xeOsGUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si12691667eds.12.2020.04.16.07.33.42; Thu, 16 Apr 2020 07:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0xeOsGUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410261AbgDPOcH (ORCPT + 99 others); Thu, 16 Apr 2020 10:32:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:50630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633481AbgDPOCz (ORCPT ); Thu, 16 Apr 2020 10:02:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AFA9722250; Thu, 16 Apr 2020 14:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587045775; bh=zbL0A8afOYEvdEVbqQo3xydp13RhWQj9s/P/zr+aQNs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0xeOsGUiZnA/j4Ccbn5JNZspM5sNoEks9lsD2WrADpzK0aYtzYuydh+2EWBXl/clf AUwxou8rj/tOHzZyM0kxAE/54TYvI06Vr4Y0BUzL0PQyuon4uv7q1Csf8TbKZi2A0R xgo6tIp+HVKlLoJKoX4gDLdMt16j8FuOH/y5k0rM= Date: Thu, 16 Apr 2020 15:58:36 +0200 From: Greg Kroah-Hartman To: Jules Irenge Cc: linux-kernel@vger.kernel.org, boqun.feng@gmail.com, Jiri Slaby , "open list:SERIAL DRIVERS" Subject: Re: [PATCH 7/7] tty: serial_core: Add missing annotation for _unlock_and_check_sysrq() Message-ID: <20200416135836.GB1295013@kroah.com> References: <0/7> <20200331204643.11262-1-jbi.octave@gmail.com> <20200331204643.11262-8-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200331204643.11262-8-jbi.octave@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 09:46:43PM +0100, Jules Irenge wrote: > Sparse reports a warning at _unlock_and_check_sysrq() > > warning: context imbalance in uart_unlock_and_check_sysrq() > - unexpected unlock > > The root cause is the missing annotation at _unlock_and_check_sysrq() > Add the missing __releases(&port->lock) annotation. > > Signed-off-by: Jules Irenge > --- > drivers/tty/serial/serial_core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c > index 76e506ee335c..32f93f03efce 100644 > --- a/drivers/tty/serial/serial_core.c > +++ b/drivers/tty/serial/serial_core.c > @@ -3121,6 +3121,7 @@ int uart_prepare_sysrq_char(struct uart_port *port, unsigned int ch) > EXPORT_SYMBOL_GPL(uart_prepare_sysrq_char); > > void uart_unlock_and_check_sysrq(struct uart_port *port, unsigned long irqflags) > + __releases(&port->lock) > { > int sysrq_ch; > > -- > 2.24.1 > This is already in the tree, are you sure you are not working from an older one? greg k-h