Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1784956ybv; Sun, 23 Feb 2020 15:20:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxokkaz2bsJaLCLNgYdm4DnLRO8rPMByEQhukXwsVxkYVFIhFvBndnESbqcSjx1cgURvgko X-Received: by 2002:aca:2b04:: with SMTP id i4mr10514086oik.21.1582500037513; Sun, 23 Feb 2020 15:20:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582500037; cv=none; d=google.com; s=arc-20160816; b=X+hvn2VL3qY6UzUlWefWOREyv4NwOEF9AWCO4Wuq8gVyUeOny96vTn2t61FEH6mxSy Acg5DI4NtRa9Vv0vsKJzTXzzozXCdiMdraAHzi0V4043mCoDp7RqgZwwupSxxTRkxayX gAYn285iy1E81As+f0mBCXK3EyAE1hj4+/Wn7Rwn9OVlN4JSDdiHAAwgmAj1pabVZJkB 5M3Vcuuj4o0R9OG652fbnk2kqQ4mME8JPk8ArgEin/dMxqKW+dzCjHRpPXl6MMCZ2zsw MgR/MIZb43OBdceY4NeLg49i+r/9lde5XtYgabyKevPcK9jFo9bZgBfNuY9xHvchrIxm SZdg== 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=E9qoESjMSRYNcvQKoiebYJwkNHkC7X+DjeOLcXKDFb0=; b=kI8DGIaEx0NXM67ySUri5p7cHz00R27esFH9LlW3TXOOEFVOg/ScB2MO6XeB+V2v+d Ja0qHGt5vzSMOt6qivvveAd7gkaAyHHuVFv3pAv+zoM6zfx8ewWK3Y82B8MJ+8qyMxHT imq0rKEM0DSidLfDSyflJ0vn4rT4bO6aUu+/PoKq9C7K1pe1P2LNnyCNYg8zbuFyhBtL TUqDrHFXs6Xi3bJoGu5N9D29Zj8cj7uE8gKAipWPnm++S49vWoDRMZVOFcGOneRcQfzq v+65bof8Lsb7zZHljcT/di+VkBiP/ve84CMmhGgQZ8lzdSDo1jdrzt9dKYXsbd4g68m3 LUdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kOHPuzo7; 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 64si5414177otx.50.2020.02.23.15.20.25; Sun, 23 Feb 2020 15:20:37 -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=kOHPuzo7; 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 S1727302AbgBWXSF (ORCPT + 99 others); Sun, 23 Feb 2020 18:18:05 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54059 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727207AbgBWXSE (ORCPT ); Sun, 23 Feb 2020 18:18:04 -0500 Received: by mail-wm1-f65.google.com with SMTP id s10so7189021wmh.3; Sun, 23 Feb 2020 15:18:02 -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=E9qoESjMSRYNcvQKoiebYJwkNHkC7X+DjeOLcXKDFb0=; b=kOHPuzo7yRvDL0CSR3L3FVOHcuUyS2HF7lfRacoZjsAC9U55y/H35V4Xz7TMjyCuB8 SLlg1PzzD6caSS8mC40bWVphpHGUOAsvkGzkg/vv+YutF2pGfcKHsO610FniwwAoo9eq NhGPTN6Y4xW2Va/irlLAKt/IfMJ0SxswYZ/kQd482UtNlXhHNl9WoCpNZBSScltJLN42 cdTV512+VDp6Tg/YzSg0YLBPgsE3K5uQb1UiGtUE6/xcwqxVXuU5eM/l23NHTBABnOXM 1bGK/92rB65v3G1fRTVyoutXBSXF6EcboYFp3t+c24I8vn0oJfIMbxTOAe2iING4yBEF BtKg== 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=E9qoESjMSRYNcvQKoiebYJwkNHkC7X+DjeOLcXKDFb0=; b=NLUHxWfUBcgT0TwMtaEVMItflb7FME8Z1H+CpIIYQheEr/swfW5xh9SFQVjD8ixNXY l4r4uaK1oZNkfWd8Tzoo/fTy3OZEq98x7FMYy9iaHzzzszlGYtS4YINGeoPqvvP7zKKa voYbbI1pV38A7900pmNvgK+t7XJjcm16zDq6DQkGDhIZh8fRfOE39XLIPVNhBCAv5fbD id/NUOpL9vPJTqpoor2btjuSpbvWyiRS9etsXy5SwD6AXwkapaZ2eGr9EWwbY5GsAFvR VfnBl9R73QLSLfbGRGZEdPb9RzQE3JRIfPFITJAzspttpLgs2OvHUWkToWIXljTzT85K jqRw== X-Gm-Message-State: APjAAAXWtXpzFNgdxVvZZjHJ0865ppEMj2r4xdCzwlxd60775f7w2sRI +tXNtNrBwz0M5bjLJywOcQ== X-Received: by 2002:a7b:cb46:: with SMTP id v6mr19194918wmj.117.1582499881880; Sun, 23 Feb 2020 15:18:01 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 15:18:01 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: jbi.octave@gmail.com, linux-kernel@vger.kernel.org, "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org (open list:LLC (802.2)) Subject: [PATCH 07/30] net: Add missing annotation for llc_seq_start() Date: Sun, 23 Feb 2020 23:16:48 +0000 Message-Id: <20200223231711.157699-8-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 llc_seq_start() warning: context imbalance in llc_seq_start() - wrong count at exit The root cause is the msiing annotation at llc_seq_start() Add the missing __acquires(RCU) annotation Signed-off-by: Jules Irenge --- net/llc/llc_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/llc/llc_proc.c b/net/llc/llc_proc.c index f3a36c16a5e7..a4eccb98220a 100644 --- a/net/llc/llc_proc.c +++ b/net/llc/llc_proc.c @@ -56,7 +56,7 @@ static struct sock *llc_get_sk_idx(loff_t pos) return sk; } -static void *llc_seq_start(struct seq_file *seq, loff_t *pos) +static void *llc_seq_start(struct seq_file *seq, loff_t *pos) __acquires(RCU) { loff_t l = *pos; -- 2.24.1