Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp50087pxb; Mon, 31 Jan 2022 14:58:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/NxyThTaTNYsjrxOZVsmLti81VMyQqM9Wl7kGP9HusUuDEJlCbluTTR4WH8nmY1wTf7Gj X-Received: by 2002:a05:6402:11c7:: with SMTP id j7mr22730579edw.124.1643669885733; Mon, 31 Jan 2022 14:58:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643669885; cv=none; d=google.com; s=arc-20160816; b=OqBAnTq7xBTRDAnkf63i/jHLXVat+qzYpDp9MLeFeeiTLjTCaAtO4vr8jY29OrUCis 7Mr0Lo9QGEEgx6eHh3C/jG2vfoQOOOGj2ZorMC+dUc72dlcC69K081BRTSdX5C0YavKJ 4iQLyR8Q3wvkKXJ1mo7xpgVxM5l7qVAzl1pgyiZqtoWJUkd2W3sEUnZNdCaSUgwY2Mcd bT0ffYj/00uvjooOfS8MgWmya/kF6Fzw11vDjJDEYjqxYPrgP8bXs+FpnQJp4rsM+MAv pD4PZY/P9UExd9oEHVsSXS9RXQ3Sl3b+l/ye5y2QWaVqkTm+UNZFvfTvx6lJfXbEKeVI Cm3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=O9DBYXTe/53mfHD3VEYTFWW63UTzpX8rS2zxHHWPMWE=; b=OSYS+OyEwIE1qc5mqmQUBwHTtup/8Sklg59GIGrQQ67pXcyPTOnSdHZpN+LLL5HU1L 9un50JfLuVMoYCWlcpWyx3j91Q1AwyUnFxo0zmHjYGHwpa8Erls2uye2It/NalQvMf1f VF2viD0cPf+v5Q2NGhlKqMmUlAFyB8HfYTDH3OtX9GGbEyms3svA4097/lCL2OLO+Xdi o6gByS6Yumo42+PJ2TOW009Arjam5R1hZgW78cHuYy8tmElBEJFERfmLDuigzE4Ql3pN oVDbPawP6WQmoRhOM18i1Hbqr+egCd2v6o1hPvXaDu48YQgaSmHeXdAZa/ebzEbfLkH1 7duw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb11si5517930edb.554.2022.01.31.14.57.41; Mon, 31 Jan 2022 14:58:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352193AbiA2Dp2 (ORCPT + 99 others); Fri, 28 Jan 2022 22:45:28 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:49607 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238931AbiA2Dp1 (ORCPT ); Fri, 28 Jan 2022 22:45:27 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0V35CZvv_1643427916; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V35CZvv_1643427916) by smtp.aliyun-inc.com(127.0.0.1); Sat, 29 Jan 2022 11:45:21 +0800 From: Jiapeng Chong To: jiangshanlai@gmail.com Cc: paulmck@kernel.org, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] srcu: make srcu_size_state_name static Date: Sat, 29 Jan 2022 11:45:02 +0800 Message-Id: <20220129034502.73912-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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