[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220613202210.31759-1-jingyuwang_vip@163.com>
Date: Tue, 14 Jun 2022 04:22:10 +0800
From: jingyuwang <jingyuwang_vip@....com>
To: akpm@...ux-foundation.org, rostedt@...dmis.org,
mhiramat@...nel.org, vbabka@...e.cz, ahalaney@...hat.com,
Jason@...c4.com, mark-pk.tsai@...iatek.com
Cc: linux-kernel@...r.kernel.org, jingyuwang <jingyuwang_vip@....com>
Subject: [PATCH] Fix the following checkpatch error:
./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 <jingyuwang_vip@....com>
---
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
Powered by blists - more mailing lists