Skip to content

Commit

Permalink
init/main.c: make "initcall_level_names[]" const char *
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Jan 4, 2019
1 parent 86c0517 commit 7c8f719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7c8f719

Please sign in to comment.