]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Fix up -Wformat-security whining.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 30 Mar 2009 23:25:54 +0000 (08:25 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 30 Mar 2009 23:25:54 +0000 (08:25 +0900)
Triggers -Werror on gcc-4.3:

arch/sh/kernel/setup.c: In function 'early_parse_mem':
arch/sh/kernel/setup.c:111: error: format not a string literal and no format arguments
...

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/setup.c

index 24c60251f68017d5c120b33b21a30dd46bb9c6e1..04a6004fccc45d39d25087ebd00c29025f0f824f 100644 (file)
@@ -103,12 +103,11 @@ static int __init early_parse_mem(char *p)
        size = memparse(p, &p);
 
        if (size > __MEMORY_SIZE) {
-               static char msg[] __initdata = KERN_ERR
+               printk(KERN_ERR
                        "Using mem= to increase the size of kernel memory "
                        "is not allowed.\n"
                        "  Recompile the kernel with the correct value for "
-                       "CONFIG_MEMORY_SIZE.\n";
-               printk(msg);
+                       "CONFIG_MEMORY_SIZE.\n");
                return 0;
        }