Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2087018ybb; Thu, 9 Apr 2020 15:02:13 -0700 (PDT) X-Google-Smtp-Source: APiQypJriBe2d0L/VGvByQzOLg40kxkwu+lupGajkoRdJgvdBRZnuyBLfNZgccvKit9K6QryArcd X-Received: by 2002:ae9:f44a:: with SMTP id z10mr1096362qkl.353.1586469733419; Thu, 09 Apr 2020 15:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586469733; cv=none; d=google.com; s=arc-20160816; b=DXGZi9F9UcDzAkT/weE5JKz29k/rZe+eVAbnWCaqVS64ok9/XL6z3W4UJOUeAiZMw2 SRYMLGw/KnEAtkN8/HQefPB+2DADK1Al5Oe8Giu8WZ7L5s5eOP9Tz8MI889TGUfYRj6u UXqbSI2h3ZdXvLPlT92mmyoda0jMooNhR48SBUWGV0cRVUgteM4dbMniVxAGoiJrwFo3 cCTtdLF9KLO1s5dYZYu9oSrBXNr4mfRfO2HZULeLwf5EG1X4OkYesuGwb42sHuxoCEEc BDX1GOXRAmYL/jADDbiPiPlHI/7X7bmq91W9u4Q6GQ2loNs6A8aXsVxJk9HBqY91fDqT VP/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=gIbc9HOoot94NST31hMuCXahTZduxM6TZemf8KZTXlk=; b=pugGawDnOYYVg6eejFLme34woCGe1Jb/K/BFvC1UVkWu+Tn+exx0zz25bl8Bw0dESW lbeCOGNjdx7jJguam68IsoTX5WMPXraJ/wf2wAwUSakS3boopQqYGUjOXlWU/eolOfMr TjnoSwyxjz4HYGNIhte8PaP2LKqM0Nb4XYjUCLfM9++nALgSywQCj2jrTu2GzuRTdYKb I6xT2spxf4vJQOOr8EVBPHRX85CKZQcNEQq+H7JPTmre8BCTOskAf3jm6RzonXFXRAzz e1ac7pz+a1BpaBvC6otHJag0W5PO5kiFe5AobwWKVVRuZITHNuEY+aJ7eg4wh/+F5xqe z6jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VGxfppb1; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si195795qkb.350.2020.04.09.15.01.58; Thu, 09 Apr 2020 15:02:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=VGxfppb1; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbgDIU7Y (ORCPT + 99 others); Thu, 9 Apr 2020 16:59:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:45750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgDIU7Y (ORCPT ); Thu, 9 Apr 2020 16:59:24 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 963EB20692; Thu, 9 Apr 2020 20:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586465964; bh=zeSm3VWSkeI0+1hac4vtHaQ4P6AqMkUOps/HKCn16aA=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=VGxfppb16xM0/UCELIL3TQXBAKKInB3c7R8gWVWdgvE4vwJxPB4kI3ewts8S0qSS+ MsuaoLQZX9VmoUWyJw09+v/0Br9KP86nFeY0BNBD/rlJfos/gL8eSRZ73NvAbaQcKZ FXKM0R8awipSiR2aW3ldVaBYfc3df1YLY1te8TFQ= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 6DB7E3522F44; Thu, 9 Apr 2020 13:59:24 -0700 (PDT) Date: Thu, 9 Apr 2020 13:59:24 -0700 From: "Paul E. McKenney" To: Jason Yan Cc: dave@stgolabs.net, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org Subject: Re: [PATCH] rcutorture: make rcu_fwds and rcu_fwd_emergency_stop static Message-ID: <20200409205924.GO17661@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200409114238.39765-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200409114238.39765-1-yanaijie@huawei.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2020 at 07:42:38PM +0800, Jason Yan wrote: > Fix the following sparse warning: > > kernel/rcu/rcutorture.c:1695:16: warning: symbol 'rcu_fwds' was not > declared. Should it be static? > kernel/rcu/rcutorture.c:1696:6: warning: symbol 'rcu_fwd_emergency_stop' > was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan Good catch, queued, thank you! Thanx, Paul > --- > kernel/rcu/rcutorture.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c > index 5453bd557f43..d621a31de8a4 100644 > --- a/kernel/rcu/rcutorture.c > +++ b/kernel/rcu/rcutorture.c > @@ -1692,8 +1692,8 @@ struct rcu_fwd { > unsigned long rcu_launder_gp_seq_start; > }; > > -struct rcu_fwd *rcu_fwds; > -bool rcu_fwd_emergency_stop; > +static struct rcu_fwd *rcu_fwds; > +static bool rcu_fwd_emergency_stop; > > static void rcu_torture_fwd_cb_hist(struct rcu_fwd *rfp) > { > -- > 2.17.2 >