Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1376850pxb; Wed, 2 Feb 2022 03:40:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLVl/nKtquba3cAB/EenFvGp7t2I3ZITEt4lF0t47eqWapci6X/UpxkAxuOul+6pEZkhBE X-Received: by 2002:a17:902:904b:: with SMTP id w11mr29451670plz.87.1643802039141; Wed, 02 Feb 2022 03:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643802039; cv=none; d=google.com; s=arc-20160816; b=ldwOYngirQ+93oj0eB/HK7XAk8OapxdzCR12/0tapuz71xrHhjqqDMMZ64urU2c1tI z0Ryc7Ph3uRzBsmEOp2/AKmFVNgNkio2T6x55JY34+knW99mXVTtxVqL18I22l6QzI6Q k5sXGICgMTA/h2rOQ/CpTWXwVKsDRi8eFRxt1/2zYO8WjLi70Pj06tNUeOLzjg6T4GgA MBVDdem4Tdze/fooAC1lwXliOYpYw1D/O8Dsaid4aYKpkDYdunUWLU27sTRMQ27xJKCt iMQXowvx1X1hqvFzG/OaeeriVV8tXGXz7F7CkBSGnn+yNKtAMOjTOIeyO4R2yIURK4M1 KdWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=QaQvbuA0YkePM2E5ji34RbTZv3qbMhXqVJ6gw6smmWs=; b=pCJQpoaBb8i8n9C6UDQSfKVBkZrDT3OStSoqA1UG7QcybiZiQ1EF04L2cwHGk1dpaP lkCjiMpqWRnHqLEKtqw4gLS/1wUpGb5ECAe4JpcHXobuI4H95/qh6ofNkpoYV4hJ3eg2 +2c5hKVL0BXZ2IumDFQ+irBvx+jkddm1HUW0+YrsmBAJZI5pHD6sc+zH2F9EAqv7LWi7 TsEyAU88pquwgACyrp+etauXHiM8poexE31l2ydwaAawGLS0HADcx/XKGAQwyADPNjgs vLye1+Z3n5c5KYkGUcDCQ62o1QYuTvktKAEKN/1DVet/Q97otXDjpDZrYUcVydeAkfv8 Rg/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Vi/CLqPB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju17si4530911pjb.151.2022.02.02.03.40.27; Wed, 02 Feb 2022 03:40:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Vi/CLqPB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S242188AbiBATXy (ORCPT + 99 others); Tue, 1 Feb 2022 14:23:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231995AbiBATXx (ORCPT ); Tue, 1 Feb 2022 14:23:53 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AAD0C061714; Tue, 1 Feb 2022 11:23:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F35C3B82F75; Tue, 1 Feb 2022 19:23:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3B1EC340EB; Tue, 1 Feb 2022 19:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643743430; bh=M3qrhQDIRqxRScO7LGC1gbR291jPdGWv35tPpFU2rdo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Vi/CLqPBGOIyB3svBAwiwk5US1d7ONryE0jzvt2QceYCMycKkPHuocMzzsO3xjmyT GOQzEEct0lOq6QsJAgu4oBa1fTjuG3J83U3L0oHcYmREHhBJgV2CVmdg6uf+/w2g3B lsZTD3eEqOavWXe7mtfqbzy9iDtwOz0xvxp5GEZAecKuW+uu6FL+VcHCmX2ES59i6O RhAxJ7gqvNoGoD3nMNA0rd+bxBgo6t4xLaKrr4ULOgAncA4v/5Mn++q001+kMsRYEq QeOrgKPqQuzl5F9tVDrxkLcDOt2De0YK0jPfh0bpCG0KV7d3BKi9LR8rOfne8D37WZ JJFuZUE0P2vHg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 80AF55C0326; Tue, 1 Feb 2022 11:23:50 -0800 (PST) Date: Tue, 1 Feb 2022 11:23:50 -0800 From: "Paul E. McKenney" To: Jiapeng Chong Cc: jiangshanlai@gmail.com, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] srcu: make srcu_size_state_name static Message-ID: <20220201192350.GE4285@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220129034502.73912-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220129034502.73912-1-jiapeng.chong@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 29, 2022 at 11:45:02AM +0800, Jiapeng Chong wrote: > This symbol is not used outside of srcutree.c, so marks it static. > > Fixes the following sparse warning: > > kernel/rcu/srcutree.c:1426:12: warning: symbol 'srcu_size_state_name' > was not declared. Should it be static? > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong And I did queue and push this, good catch, thank you! Thanx, Paul > --- > kernel/rcu/srcutree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c > index 4201815744d8..31dbd41332f6 100644 > --- a/kernel/rcu/srcutree.c > +++ b/kernel/rcu/srcutree.c > @@ -1423,7 +1423,7 @@ void srcutorture_get_gp_data(enum rcutorture_type test_type, > } > EXPORT_SYMBOL_GPL(srcutorture_get_gp_data); > > -const char * const srcu_size_state_name[] = > +static const char * const srcu_size_state_name[] = > { > "SRCU_SIZE_SMALL", > "SRCU_SIZE_ALLOC", > -- > 2.20.1.7.g153144c >