]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/mips/dec/prom/init.c
format-security: move static strings to const
[karo-tx-linux.git] / arch / mips / dec / prom / init.c
index 4e1761e0a09af73a8e9477e09e0ce34e7a981a0e..d88eb7a6662b35f118e2e71cfb46e0cbe0953aa8 100644 (file)
@@ -88,7 +88,7 @@ void __init which_prom(s32 magic, s32 *prom_vec)
 void __init prom_init(void)
 {
        extern void dec_machine_halt(void);
-       static char cpu_msg[] __initdata =
+       static const char cpu_msg[] __initconst =
                "Sorry, this kernel is compiled for a wrong CPU type!\n";
        s32 argc = fw_arg0;
        s32 *argv = (void *)fw_arg1;
@@ -111,7 +111,7 @@ void __init prom_init(void)
 #if defined(CONFIG_CPU_R3000)
        if ((current_cpu_type() == CPU_R4000SC) ||
            (current_cpu_type() == CPU_R4400SC)) {
-               static char r4k_msg[] __initdata =
+               static const char r4k_msg[] __initconst =
                        "Please recompile with \"CONFIG_CPU_R4x00 = y\".\n";
                printk(cpu_msg);
                printk(r4k_msg);
@@ -122,7 +122,7 @@ void __init prom_init(void)
 #if defined(CONFIG_CPU_R4X00)
        if ((current_cpu_type() == CPU_R3000) ||
            (current_cpu_type() == CPU_R3000A)) {
-               static char r3k_msg[] __initdata =
+               static const char r3k_msg[] __initconst =
                        "Please recompile with \"CONFIG_CPU_R3000 = y\".\n";
                printk(cpu_msg);
                printk(r3k_msg);