Skip to content

Commit 7c8f719

Browse files
Alexey Dobriyantorvalds
authored andcommitted
init/main.c: make "initcall_level_names[]" const char *
Initcall names should not be changed. Link: http://lkml.kernel.org/r/20181124091829.GD10969@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 86c0517 commit 7c8f719

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎init/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ static initcall_entry_t *initcall_levels[] __initdata = {
930930
};
931931

932932
/* Keep these in sync with initcalls in include/linux/init.h */
933-
static char *initcall_level_names[] __initdata = {
933+
static const char *initcall_level_names[] __initdata = {
934934
"pure",
935935
"core",
936936
"postcore",

0 commit comments

Comments
 (0)