Skip to contentSkip to conversation

make "initcall_level_names[]" const char *

PATCH New Alexey Dobriyan 1 participant 1 message Nov 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make "initcall_level_names[]" const char *

Initcall names should not be changed.

---

 init/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/main.c +1 -1
@@ -934,7 +934,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",