From nobody Thu Sep 11 14:47:08 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75531C001DB for ; Fri, 4 Aug 2023 08:58:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbjHDI6z (ORCPT ); Fri, 4 Aug 2023 04:58:55 -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 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 ope= rations."); torture_param(int, weight_all_wait, -1, "Testing weight for all-CPU operat= ions."); =20 -char *torture_type =3D ""; +static char *torture_type =3D ""; =20 #ifdef MODULE # define SCFTORT_SHUTDOWN 0 --=20 2.17.1