Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3281757rwo; Fri, 4 Aug 2023 02:16:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKKS/5SPRGjoHZLFPvPbOJ4Yxhr9gDydW8MVcuF4lj+2vZSVXro4QebrEDKdGo7aijOTXv X-Received: by 2002:a17:906:8a46:b0:99b:f8ab:f68b with SMTP id gx6-20020a1709068a4600b0099bf8abf68bmr958096ejc.19.1691140603818; Fri, 04 Aug 2023 02:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691140603; cv=none; d=google.com; s=arc-20160816; b=HUx4/d5HR5MNZcy2sL98YGgwY9niJ4HLMDPWKNsH1rfHChPOmAeXmWspmrN/1slN85 LWkW4++U0guv6ySA9LP8DpgDA6ecQINQGofc0tAPbBOB8FOTCbZHZzgZhEv1DRSFxqti /LsAC/mZc9YTPB+qMfNSpQIShDac5KoKBQdoYYay3+BEd7k2VnN955zuJ7eJr/oGzXRj hBEdJJCqpWAgamWiYwUltKBrcE9s9s1rGp/636uUxg9pv2lb3pgMVda5vzIwxTEd5Pxd HgZ53qg3Xw00AuNxoh8ol0VOeqCfhcofH0jFBt85atGMI9HeIEkfeNMdYuzyAPQN1X1v j3Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=INNBNODEalzUKnv9ArjkIuP24bs6hZircbnG1SkyzCk=; fh=hHMcZ18YSk3QQbKnrTENF9GDr4ASsLNQPVCUMj28PsE=; b=K3hGaIqaHmVZTGHhPpcagtwiHA94Oskta190EIoICTNTbV/gxUgyfwsjHD3uje2f9C PTt4Y4XQHXUEwbDTxOglMIfvIFQUDzWLsNnMlSfJJsTsdHTrrn0ePz3W4s8SXxEwA25r niFIdKPpeRLVOxlzsvlham0LyJPglt/npH7hwf5QoSJImXF+wnkWUa2Ot0BWpKQneg15 QhF47h6P2fTyqfRdowQSYUs2RZ9iS9LbWBTLxp/zzQT91qf6nWiDSPkQJpV74Xnp+9no H7xjd7V4FiyZk2TFbEfTRVk11Erv5tOGMefjg2fEu5AMUlpNIjd6dXq2aQM8l5X12zbR RVfQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020a170906255300b00991ece4c966si1421507ejb.101.2023.08.04.02.16.18; Fri, 04 Aug 2023 02:16:43 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbjHDI6y (ORCPT + 99 others); Fri, 4 Aug 2023 04:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbjHDI6W (ORCPT ); Fri, 4 Aug 2023 04:58:22 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E96E45B89 for ; Fri, 4 Aug 2023 01:53:47 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RHKF11sjGzVk2H; Fri, 4 Aug 2023 16:51:01 +0800 (CST) Received: from huawei.com (10.67.175.31) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 4 Aug 2023 16:52:48 +0800 From: GUO Zihua To: CC: Subject: [PATCH -next] scftorture: Make torture_type static Date: Fri, 4 Aug 2023 16:52:16 +0800 Message-ID: <20230804085216.550-1-guozihua@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.31] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500024.china.huawei.com (7.185.36.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org torture_type is not referred elsewhere, so make it static. This resolves sparse warning: warning: symbol 'torture_type' was not declared. Should it be static? Signed-off-by: GUO Zihua --- kernel/scftorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/scftorture.c b/kernel/scftorture.c index 5d113aa59e77..b92da02d0293 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -67,7 +67,7 @@ torture_param(int, weight_many_wait, -1, "Testing weight for multi-CPU operation torture_param(int, weight_all, -1, "Testing weight for all-CPU no-wait operations."); torture_param(int, weight_all_wait, -1, "Testing weight for all-CPU operations."); -char *torture_type = ""; +static char *torture_type = ""; #ifdef MODULE # define SCFTORT_SHUTDOWN 0 -- 2.17.1