Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp829073iog; Mon, 13 Jun 2022 14:00:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9xn/byLN3b6vC73gTg3lGjNHVR02R8Vv4qyIfgub+Z73sLNjhGnP/srfZOI23KjbsA9LK X-Received: by 2002:a17:906:64d1:b0:712:c0a:5671 with SMTP id p17-20020a17090664d100b007120c0a5671mr1427499ejn.494.1655154028784; Mon, 13 Jun 2022 14:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655154028; cv=none; d=google.com; s=arc-20160816; b=BQ8N9JqB5Q0yJ2Qp4iJzEk5/ZUduwjReYj9QWBfhJtRwMdNZVkTNguEme30yUH8Iej JpbvUD4N7POIZPVuxrGyqBLXiSzcevgYuDdU295RujH8hGO6IHcr13ZNnXTbqklRIFkB rSPrEevm5hsCJVAcQAye0evdfGG1dMrjOpLRnyOJqwOgy/BfHUFCvNNs/3PvAeWdCreS K1un2oGLvqipmk7OxnYmUUzrvfLOyYJpn2VPMKk3dfA5i9oZlKcD1Hx+TnBaWSSY1c4x 9So0X3VgOsQf23ArGtp/yE/DaqLPR0jIXImpw/+hN9UvzRaQRifN29IMnTc2TgvmmaZ6 JM3A== 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:dkim-signature; bh=sz+nfNuzmTuxAWdpxnGUivML8lc4W2sa69qotAWBC68=; b=V3phBqU7tneM+BMDuTV5VVONLTru539MiCBaauogZfJDuxSEdChn8bAypgES5hN6V3 pF+KAU4sevKVig+7H8MZDKGbWNi/STYX4beKI3pPS2LAFzrHjyZtVv4xxTj9JN4w01B8 dfRyuHUg7rqfKsR2fUgxhe7s8I1ZGi+Bx7sw23fNwPuKjNJxr2mGvRa9As2dP921fR/D nRKyG09eGGndmaAFdC5yUpJAHv065jNYdckFCxhAgDl0Oo0Py7rsE4QCXy8l1OJfz6B/ JVeL9QzQLxXTFmIwmJi7AtI6Q8g+Ya3FvINpUmyQlxAKwKfA6a94DWapsSA02RI8A+6E Ga6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=TaY8MJTg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ti1-20020a170907c20100b006fed9affed0si8082840ejc.528.2022.06.13.14.00.01; Mon, 13 Jun 2022 14:00:28 -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; dkim=pass header.i=@163.com header.s=s110527 header.b=TaY8MJTg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348817AbiFMU6Q (ORCPT + 99 others); Mon, 13 Jun 2022 16:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352344AbiFMUyZ (ORCPT ); Mon, 13 Jun 2022 16:54:25 -0400 Received: from m12-15.163.com (m12-15.163.com [220.181.12.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1740EBC28 for ; Mon, 13 Jun 2022 13:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=sz+nf NuzmTuxAWdpxnGUivML8lc4W2sa69qotAWBC68=; b=TaY8MJTgTCcfzI3ZkpTFM oxuciPRCVace/WcUpPU4vPH61SIaIZdWjcLbY12EolRjR3hGBgFj28fQ4sm/ik2U kffJ68iXugbX6wuHrrdZdd27lvN/7A1319TA6E1q4YMhq95nGJxR3HJO4nfktMds bs2W+GTXCKNMJwQfFnh6cI= Received: from localhost.localdomain (unknown [1.203.64.79]) by smtp11 (Coremail) with SMTP id D8CowAAHBP50nKdirxuRHg--.24745S4; Tue, 14 Jun 2022 04:22:37 +0800 (CST) From: jingyuwang To: akpm@linux-foundation.org, rostedt@goodmis.org, mhiramat@kernel.org, vbabka@suse.cz, ahalaney@redhat.com, Jason@zx2c4.com, mark-pk.tsai@mediatek.com Cc: linux-kernel@vger.kernel.org, jingyuwang Subject: [PATCH] Fix the following checkpatch error: Date: Tue, 14 Jun 2022 04:22:10 +0800 Message-Id: <20220613202210.31759-1-jingyuwang_vip@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: D8CowAAHBP50nKdirxuRHg--.24745S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrZr4UCFy8Jw4UAFy5JrW8WFg_yoW3GFc_G3 Z3Xr18JanrCFW2kr1FvF48try8Xw18XFnrGrn7CFyUA3WxXw1rKws7Gr1ayryxWr1akr98 X3W5AayYyr17CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRpT5lPUUUUU== X-Originating-IP: [1.203.64.79] X-CM-SenderInfo: 5mlqw5xxzd0whbyl1qqrwthudrp/xtbBaQ0fF1XlyIsGKAAAsx X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 ./scripts/checkpatch.pl --no-tree -f init/main.c ERROR: Use of const init definition must use __initconst +static const char *initcall_level_names[] __initdata = { Signed-off-by: jingyuwang --- init/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 0ee39cdcfcac..dc6188a3dd4e 100644 --- a/init/main.c +++ b/init/main.c @@ -1336,7 +1336,7 @@ static initcall_entry_t *initcall_levels[] __initdata = { }; /* Keep these in sync with initcalls in include/linux/init.h */ -static const char *initcall_level_names[] __initdata = { +static const char *initcall_level_names[] __initconst = { "pure", "core", "postcore", -- 2.34.1