Messages in this thread Patch in this message | | | From | jingyuwang <> | Subject | [PATCH] Fix the following checkpatch error: | Date | Tue, 14 Jun 2022 04:22:10 +0800 |
| |
./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@163.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
| |