Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1209074pxb; Thu, 4 Mar 2021 06:12:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRg/QdtrjPRpzRQj6VQLwK8mV3Ni57eMnh/4R7u3SytHIPG34Hgj7u3VQ8PD2fqEjz1dKm X-Received: by 2002:a05:6402:1d39:: with SMTP id dh25mr4659155edb.282.1614867167436; Thu, 04 Mar 2021 06:12:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614867167; cv=none; d=google.com; s=arc-20160816; b=nXDobg3BQttW8IpY8bJTprUCKqBjymqXv7uu5XGcynb+EZGvVnT1CidZsx9pKcSL1q Mb8dY+SDHCyJLOpgoGOWReqEkj1XZPj6ig4X7Y4ZA8wjfNR53E8zg5EzHmPQfbFJrPV7 bgkbnDNbamv/nBdEYuJHwYOA6gSgbOyVapsppO9oAM43mF52uKRdGXbVtvVuO+7KKRWW jPR0Ie+PnC/qwF47zF6PWyWolreHSRi8LUo21vMKLzqt6ih1vRt2vH76+zmPrudOu+WG 92LBUYopURkLGjfGJKMSpYCTUDL+hJI0MTO67XQr4vp4qibzjDcqBXXOPShFaaDjzPDz R61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=thp28kdzWFf4BU4ERPzcJ6iRs3wjm8zaXegIk1IcYjA=; b=dWYJpF+cOSmHNaqjMG09Im2HK5u8FogPjGtguONv26THi0S4ahIabaRnvxOQwzQjYV Sn8tE7Yi4kqQnvP5i+Tp3MYsBE7ctXRaA94m6TgVIYu7yYvcnqAUJSQq+eQ48qm5r/99 MLgYpUFuMVYJFQXv7elW1UkDcXBoieORpHp84M+s8PC7/jlMcUd4FWYzD/JhM+qFjg8q xmZDmK0fFX8/xaiAy915blnnRInps34qsNJTQG7lRLbKJvfz7Kv88jit7OP56L/kCxAz uO65gMQfB2H3a/YgUR95FRlnWMV4FUNSouBzCizjDa0wTXYIVHC75yHIEXC/chiFDY36 7Ucw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mby3q7MR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si17356552ejt.33.2021.03.04.06.12.24; Thu, 04 Mar 2021 06:12:47 -0800 (PST) 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=k20201202 header.b=mby3q7MR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351528AbhCDBDg (ORCPT + 99 others); Wed, 3 Mar 2021 20:03:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:48828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448484AbhCDAZz (ORCPT ); Wed, 3 Mar 2021 19:25:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E65B364E67; Thu, 4 Mar 2021 00:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614817395; bh=TtJbQpgH9nZfTHCrjhHp+Tq+zDCTjyv92rxpD0H+L50=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mby3q7MRHkNPqovc3cbVbBT1jQDE12CuxaZF3yp0AlkQmAM2kd5P7v6+FTz3stYda Bhppo0GPjr3UTXMFYRaJWB7PFm4hnQFYrer4OloDcc5uViH9cZdk5LRdQmoImQ9Kv8 x4jZfHx0XqkoqZs3BUioz2GvYwssenAypyVkzBlVKNGw6J25iEA1yVoNsF6ChIdwmq zkMTNCwdzTBvGJuTYmhKPjJOiS0BPeNsIhRH+UypSQ9xTtT+0tz33QvcBRPbGveH/l aNKfDytztO9WKQlllAPZCWaBF1hN0vjIFTGBmvqwK5XagAeHPE2oB7UUahXnTrOdNI P9CoimAJlaSuQ== From: paulmck@kernel.org To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, Jiapeng Chong , "Paul E . McKenney" Subject: [PATCH tip/core/rcu 08/12] rcu: Make nocb_nobypass_lim_per_jiffy static Date: Wed, 3 Mar 2021 16:23:07 -0800 Message-Id: <20210304002311.23655-8-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20210304002225.GA23492@paulmck-ThinkPad-P72> References: <20210304002225.GA23492@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiapeng Chong RCU triggerse the following sparse warning: kernel/rcu/tree_plugin.h:1497:5: warning: symbol 'nocb_nobypass_lim_per_jiffy' was not declared. Should it be static? This commit therefore makes this variable static. Reported-by: Abaci Robot Frederic Weisbecker Signed-off-by: Jiapeng Chong Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 93d3938..a1a17ad 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -1556,7 +1556,7 @@ early_param("rcu_nocb_poll", parse_rcu_nocb_poll); * After all, the main point of bypassing is to avoid lock contention * on ->nocb_lock, which only can happen at high call_rcu() rates. */ -int nocb_nobypass_lim_per_jiffy = 16 * 1000 / HZ; +static int nocb_nobypass_lim_per_jiffy = 16 * 1000 / HZ; module_param(nocb_nobypass_lim_per_jiffy, int, 0); /* -- 2.9.5