Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1785000ybv; Sun, 23 Feb 2020 15:20:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzvYAw+6t8/H15OJkrsH4f5adOyUbY3T7PY65XSc9FNf+ydiBAK0Cjzg9liqiHMRTX230Ho X-Received: by 2002:a05:6830:1050:: with SMTP id b16mr38380898otp.140.1582500042087; Sun, 23 Feb 2020 15:20:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582500042; cv=none; d=google.com; s=arc-20160816; b=zNzs6AsYvNLWCQ/Xjvyh7WzJcfXX9FT/RlRj730uEbyZ5YHuw5WB+6Q84GBGl2l61L Q2qZE+krGNvWfs6HlRdYxXE23o6Toy4YQ2ejXRmKNDruuVEDUVEmXQXf1qrReMUEUxWB Dt0/d3m+NpTC2pJck9vDXTOoTUJx1JWOBnBwkdWTELcmDfHlJU98RnxaDpOZm5DhtACN yoVR5k/k1oz33cRLSInBvKS8f/hVJRaYpyXHcfbsYz9T0kTZa9k2Ch1D6AV6mpe0NXtz 3yavkUjoYi/DnogPvClKZvWvE8PvDMkZrA3D+fi52ADv0+jR42KxfIcS5KKn0ltiCjJJ VszQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=izHY1F8j+df2t9OwA9fWXu5eRF5eYehm5029wXHxxig=; b=upAa6w6157rtY6Lup8YPq6wspA4YLI9a9o0fqP+QW7C/4OFP1Vf4hCPySIFACHqOZM exTBL4lSulrKrGxyc5SxNSa1mPQS8BQe9b0LqErxLaM4MjI7qpzRXu7/0Ztq0OGDCxA/ hmNkPh7Ez31/n5PWgkjSZDoktl8vNxI57AsTGSbRxJRgFn6RaZO5QH/x8aEypndqel0p Rg9gk55LOPb6/n4GFo4nUSSAeVN+ImzXY8W1fAppIKDYW50uGm5jbXeFaeLKhM0sXVlL LC3cW2arNQ/JxMJMMGYGjnwKGXeJrOlBlAoMKeOnkYc3Xlu3Zok0d7d38aHzckikszua lXkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LreYWf0D; 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 l84si4009684oig.5.2020.02.23.15.20.29; Sun, 23 Feb 2020 15:20:42 -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=LreYWf0D; 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 S1727783AbgBWXTz (ORCPT + 99 others); Sun, 23 Feb 2020 18:19:55 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55193 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727166AbgBWXSF (ORCPT ); Sun, 23 Feb 2020 18:18:05 -0500 Received: by mail-wm1-f66.google.com with SMTP id z12so3995013wmi.4; Sun, 23 Feb 2020 15:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=izHY1F8j+df2t9OwA9fWXu5eRF5eYehm5029wXHxxig=; b=LreYWf0DBloZvb0KlyMsbV8daJZDxN7BzedhxGS2M1vxfwFELagpDmYWt5Jqr4vQl1 6H3cfxQLjYeYnA6UqxYh7KwwxqS8sxUbiYUhf5kVlbodHMYsT8a8UyxPEF2hCH9q8sds I2dvpeuvF5WRifLIwgumAkIalFx32wfYw1G7XsaYUK+ptM0NQXNJZTejWvLnSdqp5Ysh NREckGmZ9lf8PsCgrmYObPP1KZrSYO6uyXNc/e6ApYZqWLU309w8sEEA7wd+bn7MC4bB g10ZNjs0NPwIyCwAlJPcru/B/TRmEWKCIGv4p6bLccdyIILCnQeeiI7HmePQa6dIfS+a Oe0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=izHY1F8j+df2t9OwA9fWXu5eRF5eYehm5029wXHxxig=; b=UAh20UBx8Zzc0DrHBa8mdN2SlZ3qkNRTgQuKma5ecTvqTMsQrJFBuqe3ojilniuShX 9ccApw00A8k3Ka/4aXUJK1nICqc/u3p7AH8tjJUUJtJhSxlm9+9dyiH5oGqTSJQF+ly5 hid5rqc1JHSYgaT5ngfOGzonvqzqufdhrvFXNVXZuXZaghY3zd9RneK23selnfViZHNY TYUuE4UXjOMb5tXdklv/naq4L/sxpYe1hrUbHimkFuhvSnNzbg7khsJsZEwV7NsR8sEH hUXXlg4Oj2A4NCNy0KdmlpFmXzFd6wRMzLzyhxsos3CErhhZ1upP5Wfw/yFIQtX5S1Ps kqFg== X-Gm-Message-State: APjAAAVuPRsC4Kt6L7BoS+aKm6fdiXUQHq54/k5urFH0lbeybM84bYDM jfB+GJ0J5NSaLV46ckpX3g== X-Received: by 2002:a1c:1d8d:: with SMTP id d135mr18045693wmd.92.1582499884063; Sun, 23 Feb 2020 15:18:04 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id q6sm8968203wrf.67.2020.02.23.15.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 15:18:03 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: jbi.octave@gmail.com, linux-kernel@vger.kernel.org, Ralf Baechle , "David S. Miller" , Jakub Kicinski , linux-hams@vger.kernel.org (open list:NETROM NETWORK LAYER), netdev@vger.kernel.org (open list:NETWORKING [GENERAL]) Subject: [PATCH 09/30] netrom: Add missing annotation for nr_info_stop() Date: Sun, 23 Feb 2020 23:16:50 +0000 Message-Id: <20200223231711.157699-10-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200223231711.157699-1-jbi.octave@gmail.com> References: <0/30> <20200223231711.157699-1-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports a warning at nr_info_stop() warning: context imbalance in nr_info_stop() - unexpected unlock The root cause is the missing annotation at nr_info_stop() Add the missing __releases(&nr_list_lock) Signed-off-by: Jules Irenge --- net/netrom/af_netrom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 8be06e61ff03..7b1a74f74aad 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -1242,6 +1242,7 @@ static void *nr_info_next(struct seq_file *seq, void *v, loff_t *pos) } static void nr_info_stop(struct seq_file *seq, void *v) + __releases(&nr_list_lock) { spin_unlock_bh(&nr_list_lock); } -- 2.24.1