From patchwork Tue Jun 6 12:28:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 103790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3363706vqr; Tue, 6 Jun 2023 05:42:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pevT1lwvGS9+aW//9xHepb1yR4p5CUwjv6tH/SqBjTz/PH2opwc6lbQgSGXEsSfOh8Omi X-Received: by 2002:a05:6808:18d:b0:39a:b787:1ae2 with SMTP id w13-20020a056808018d00b0039ab7871ae2mr1305961oic.52.1686055331557; Tue, 06 Jun 2023 05:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686055331; cv=none; d=google.com; s=arc-20160816; b=mE3VTmDFrIOT+Va1smQO1kdIOf0kXkDCOzgQIgS6ah9Pzjk/GQW4h5G2wHsoUaNCj0 Oi/UWx9gg04h3A3pw2uTjZ4vIqs/A2wSB+tcqC3MF6tMwASPeAghfWiPY1RQ0wB+62L+ Zlj/C5wDa8R8AE6Tyhp0SVmikbIjGgUJm97LWSm7BF3Ut4aYFmO1Bsx+5EKRm8ZFslnq 5LUBc8GV0vZEp3L4My4KsbkvhIch7QFvUgIIg8ytma8Ze2xlTWpPItNxFoo/O2W84DEK Q684RUlBaRb+OSmhy+uGMWYTkw+47xMKYBdol1VGlBPFeaO7Xe3unLYMbD5sLqnKyYw8 xJ3g== 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=mrACoyopHSN9P2vZQaIalCbx74NBqCKuWTUs5NYp4nA=; b=pqFNGCGHgzAsX+P7w5HyaeJyvts1R0HavmMlZFLbC/D1cPRbPZVMFY+gHOUHVD0HI2 ehRJqjiSra3kg4niVf5BnLCuazN+nVo/uUl7qnaddiqUJKvLZ7UFyAXoEH62eYBSYvv9 teHB/K4JUIk/GTvoIyreuAzABH526Z0HuMMZzPANHTepJtrj2e6dPBwtkYj3+tGtZT7J 9sbnxyUYWjI/Er2bSFzc1cMKK0SxeTIWSRuSwpzNtlIuad3AdV7RTVAlFn4u1+6n1hW5 BCb8VKsUabcr+eL3cdNQkeob5Oo0FVQSzIsiX5c0AZb/KHinf4ZdJQ369/Zyg49KsR0L jm9w== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b0054201a3f08dsi7200016pgd.592.2023.06.06.05.41.58; Tue, 06 Jun 2023 05:42:11 -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 S236774AbjFFM2h (ORCPT + 99 others); Tue, 6 Jun 2023 08:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbjFFM2e (ORCPT ); Tue, 6 Jun 2023 08:28:34 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F63F10C3; Tue, 6 Jun 2023 05:28:32 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Qb8qD2s7Cz1c0Hq; Tue, 6 Jun 2023 20:26:48 +0800 (CST) Received: from huawei.com (10.175.104.170) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 6 Jun 2023 20:28:29 +0800 From: Miaohe Lin To: CC: , , , , , , , Subject: [PATCH] ACPI: APEI: mark bert_disable as __initdata Date: Tue, 6 Jun 2023 20:28:19 +0800 Message-ID: <20230606122819.343378-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.104.170] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767957155340846053?= X-GMAIL-MSGID: =?utf-8?q?1767957155340846053?= It's only used inside __init section. Mark it __initdata. Signed-off-by: Miaohe Lin --- drivers/acpi/apei/bert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/apei/bert.c b/drivers/acpi/apei/bert.c index 7514e38d5640..5427e49e646b 100644 --- a/drivers/acpi/apei/bert.c +++ b/drivers/acpi/apei/bert.c @@ -34,7 +34,7 @@ #define ACPI_BERT_PRINT_MAX_RECORDS 5 #define ACPI_BERT_PRINT_MAX_LEN 1024 -static int bert_disable; +static int bert_disable __initdata; /* * Print "all" the error records in the BERT table, but avoid huge spam to