init/main.c: make "initcall_level_names[]" const char *
authorAlexey Dobriyan <[email protected]>
Thu, 3 Jan 2019 23:27:29 +0000 (15:27 -0800)
committerLinus Torvalds <[email protected]>
Fri, 4 Jan 2019 21:13:46 +0000 (13:13 -0800)
Initcall names should not be changed.

Link: http://lkml.kernel.org/r/20181124091829.GD10969@avx2
Signed-off-by: Alexey Dobriyan <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
init/main.c

index 86d894852bef8b4e25cddde0967d4f08a86ab269..6a74ba0892d223363bd7529d0a216c7f08bd399e 100644 (file)
@@ -930,7 +930,7 @@ static initcall_entry_t *initcall_levels[] __initdata = {
 };
 
 /* Keep these in sync with initcalls in include/linux/init.h */
-static char *initcall_level_names[] __initdata = {
+static const char *initcall_level_names[] __initdata = {
        "pure",
        "core",
        "postcore",