Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1562929ybb; Thu, 9 Apr 2020 04:47:05 -0700 (PDT) X-Google-Smtp-Source: APiQypJkYWZEy0Y2E5SfllykQkuroGe701SE7UOGn0XusPy96vNdD42/a0GiLse/FDNJx39cnGr6 X-Received: by 2002:aca:b7c1:: with SMTP id h184mr6027016oif.77.1586432825379; Thu, 09 Apr 2020 04:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586432825; cv=none; d=google.com; s=arc-20160816; b=AoEVo+4LKMw9PnSHBP/BVcrJHHto3Rbu4r1s4iSfVO6/fQvXSwXNpEnkVFaCFodswW cfxAuivsNpBGs2cnIaWqETJXfBgauWn+t3eAZsAHrJ1Xv8qDr34XOrGLok0/PqL/KUXf p+fQ/bjpcs3j3mh9IkVwgJWYxhhJfm7kKOuEUcHOkz0gH9GFSKLv+gtrSn03UK9sik56 JiRw1MEo69n6biWv8I9grcF0YlE1VmJ0e+kQ8sGum6S0KT19vu82ja8adMPbBo1L0q+O bRQ79/HqKtIcYtDMne3kJ7LC0qQNDlCV29kICRSlUr8PVcOX4HRI6IbjUqgVTd/ykEI8 52Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=LqwgXsoGJ2kxy4Qz598godGOXc8OOaDfhPmjm2BFFFU=; b=zHl9yLLdSIOFjswnwCS5lUB8h+7ZSWbNA/rx2dkdZT5n2Ll4G4LMjbqDFieGZKvIwW C6c8qvtO+ZnSmuaDVNFo3dIhBg+6OqVNg/Qjpoic7WfwWTbDsTMq1UDL0v/i9F6IZr9C d+B3M2rkfardFT9pg2ifGloBondTMfKQdi4Be4/JJx1GSvNI/JylI1LQ51T9cPXaCRgg xRlAdgvgwVDlctmXFqDcMZdoyBTnEKgFTmNihP21LU55i7W7OoNw0/WI7sM6N9t77w85 IpLVaVVanLxhXhbD+tot0h/+qstID1ix1I0tlNlR+AJLJNtkXNSQybJQfPLeUVRkVuG5 f54g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si4045990otn.57.2020.04.09.04.46.51; Thu, 09 Apr 2020 04:47:05 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726669AbgDILo3 (ORCPT + 99 others); Thu, 9 Apr 2020 07:44:29 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55692 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726622AbgDILo2 (ORCPT ); Thu, 9 Apr 2020 07:44:28 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D67071A3D8173519489F; Thu, 9 Apr 2020 19:44:13 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 19:44:06 +0800 From: Jason Yan To: , , , , , , , , CC: Jason Yan Subject: [PATCH] rcutorture: make rcu_fwds and rcu_fwd_emergency_stop static Date: Thu, 9 Apr 2020 19:42:38 +0800 Message-ID: <20200409114238.39765-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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