Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4190661ybp; Mon, 14 Oct 2019 00:18:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYhd8tbparfKZH1oe2/RkpuZy9umJ+6eJr4yQ5s3lDcK88IX4KMaZALWHAPUos5mN1fRlq X-Received: by 2002:a05:6402:68b:: with SMTP id f11mr26027946edy.173.1571037524512; Mon, 14 Oct 2019 00:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571037524; cv=none; d=google.com; s=arc-20160816; b=QaeUBY0Szka7Acy+rWW4qSLdOir1sn5J7kvq+9SnWGklsdgae7FuNjVhB4shjJFBKk BJR88WhSR43W5AeP3gUjirWFVFatHpuC5Pi8OxRdj6yis4u11hxX8OnbooG4hCgEjg9k ekgjG8AmKm3azorM4ajrRCcjNeYClsh4czpzF3Gaok089K5hV0e95oEtmrpnZhuGkyds mGPiU30dCTYX8Hrkjb/x0p2QWlKGR/60kGY0v0hdYyI3lH3YAQxZ2dI7wzy0DaKKjqEL FR0gBTf+TmlYSArIrif0i5n+nzByOeoKUOYD/YS9SZff7DdeKHW4zBoZ8f7/HYvLQDbu eYmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=Vdesmn6XqbPn9eUI42gq2euhKN/Rs7w1jrx+CubBc3g=; b=R9cEDygUhcnQWbaP31SBxtTvHidQVnPLPVAz2DJMCeSpfP7+JaSUFM7LIKuTQGQN+n ptMMJvBwkPhkOxU4a4kjbDRfSHJxOogRsaIpZ17aSzcvedjiOlkIHOs8xDYqVNHR9oaz miyljvJ8awIFrlqjCazw6JVBgiYl6sajpi4aTpCSA9QJ1lx40JH10AGmlAIws+uk5icq QrER4xwG9/ge066XQKus5WWuMXkGlrBTjDjniznoYiAUoofZ8N2aEswjAafsFUAIccp3 BJNYBgblp56gEM1f6ywjRCgw8Z+ARj/ClmgL0/PfdkoimcQDuNp0bpxU8FsXjqUwCivT 1d3A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si10221472eje.339.2019.10.14.00.18.21; Mon, 14 Oct 2019 00:18:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730245AbfJNHRQ (ORCPT + 99 others); Mon, 14 Oct 2019 03:17:16 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:33871 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730109AbfJNHRP (ORCPT ); Mon, 14 Oct 2019 03:17:15 -0400 Received: from [78.40.148.177] (helo=localhost) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iJubD-00030W-Es; Mon, 14 Oct 2019 08:16:59 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 14 Oct 2019 08:16:58 +0100 From: Ben Dooks To: paulmck@kernel.org Cc: linux-kernel@lists.codethink.co.uk, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu: add declarations of undeclared items In-Reply-To: <20191012044430.GG2689@paulmck-ThinkPad-P72> References: <20191011170824.30228-1-ben.dooks@codethink.co.uk> <20191012044430.GG2689@paulmck-ThinkPad-P72> Message-ID: <7acbcc9b901304f8f55cc1cece802785@codethink.co.uk> X-Sender: ben.dooks@codethink.co.uk User-Agent: Roundcube Webmail/1.3.10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-10-12 05:44, Paul E. McKenney wrote: > On Fri, Oct 11, 2019 at 06:08:24PM +0100, Ben Dooks wrote: >> The rcu_state, rcu_rnp_online_cpus and rcu_dynticks_curr_cpu_in_eqs >> do not have declarations in a header. Add these to remove the >> following sparse warnings: >> >> kernel/rcu/tree.c:87:18: warning: symbol 'rcu_state' was not declared. >> Should it be static? >> kernel/rcu/tree.c:191:15: warning: symbol 'rcu_rnp_online_cpus' was >> not declared. Should it be static? >> kernel/rcu/tree.c:297:6: warning: symbol >> 'rcu_dynticks_curr_cpu_in_eqs' was not declared. Should it be static? >> >> Signed-off-by: Ben Dooks > > Good catch! > > However, these guys (plus one more) are actually used only in the > kernel/rcu/tree.o translation unit, so they can be marked static. > I made this change as shown below with your Reported-by. > > Seem reasonable? yes, thanks.