Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3280851rwo; Fri, 4 Aug 2023 02:15:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRg/9Lqx80Qmj/7F9Q5VdAbDyp6ag3coSE71BaHX30Z1rgKFm+sCbGgULy3k+PDrdxgfL1 X-Received: by 2002:a17:907:760d:b0:998:de72:4c89 with SMTP id jx13-20020a170907760d00b00998de724c89mr1024040ejc.50.1691140543522; Fri, 04 Aug 2023 02:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691140543; cv=none; d=google.com; s=arc-20160816; b=NK7AVeyswU+kSlxS6UT31nsoR8EPlvUb6lAC29x9rsbZrnwKuZxkDK+pu1sGnEGr6r SJMdz1Vjjni7W/wEOl0cUQP+CMuuWGjnJE0/Uy2lfbT70kLDufUXuiknvx2YKtDCi8Jf UCwpnZf/dgBbwv+F31ZOSo2IKvJ20R46GgTa+OFMlddR5CsIzSaz1g8WYhniUiDVOyGF IdP2ELnahmpJsbAiQYO/aZ5MPveMO828lKFVdStsW9r0vKoAr03CGh5jHFiCRnZTdJQC ZwgajAtYv5oYJScJP6yBRKq7l7B55nxZyCPI9F5Md7PDyWtoCWXn5PiGsAmFVhd2wN+U N8ZA== 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=fbcx8eJWRr0LxRqF2m91qWhupwc/PAa7Fv/jIxhe/Y4=; fh=JO5C7fTANFrWQW/EaVLVGRuLrAlJyJBiQx4NAKIQ6SM=; b=mZIRTKT6dodnOrAfw4fszP4ANnNGMHm1C/ZGhvWO8M4+xGUNiuX6WNeYOab8K4Wbzs I0YE/fjMBBimdMrHmmOBM+iLSCVMZUkbSOVbWXQhOKAp0CTWPdN4TQF7TwbWJ7piixlU 4cO0QQR/cfzWLltuvJ+vYsZZTcFK2axX2UwTJnelwbvPWTc7KWkFmZE51mgincwZ0Di8 A9s2nd3f1AVcO0H8n2ovcpvLYMlc4y5t+qKJARGdQ3CU/wORygsJ+KFQlmchiRwS30T0 2tyjjob8vFCkBKqMWfKENdHf0wtMUSKPhIykuYqu50UV0Px1AJJfQJeK0DShGcoHCyuF dz7g== 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 x9-20020a170906298900b0098d2f715b89si1371213eje.102.2023.08.04.02.15.18; Fri, 04 Aug 2023 02:15: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 S229792AbjHDIt6 (ORCPT + 99 others); Fri, 4 Aug 2023 04:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjHDItg (ORCPT ); Fri, 4 Aug 2023 04:49:36 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A621A49F5 for ; Fri, 4 Aug 2023 01:49:32 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RHK8568pkzJrTM; Fri, 4 Aug 2023 16:46:45 +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:49:30 +0800 From: GUO Zihua To: , , CC: Subject: [PATCH -next] lkdtm/bugs: Make huge and ignored static Date: Fri, 4 Aug 2023 16:49:02 +0800 Message-ID: <20230804084902.31562-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: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500024.china.huawei.com (7.185.36.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,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 huge and ignored is not referred elsewhere, so make them static. This resolves sparse warnings: warning: symbol 'huge' was not declared. Should it be static? warning: symbol 'ignored' was not declared. Should it be static? Signed-off-by: GUO Zihua --- drivers/misc/lkdtm/bugs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/lkdtm/bugs.c b/drivers/misc/lkdtm/bugs.c index 3c95600ab2f7..9b0310e0b923 100644 --- a/drivers/misc/lkdtm/bugs.c +++ b/drivers/misc/lkdtm/bugs.c @@ -273,8 +273,8 @@ static void lkdtm_HUNG_TASK(void) schedule(); } -volatile unsigned int huge = INT_MAX - 2; -volatile unsigned int ignored; +static const volatile unsigned int huge = INT_MAX - 2; +static volatile unsigned int ignored; static void lkdtm_OVERFLOW_SIGNED(void) { -- 2.17.1