aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/setup.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-03-31 08:25:54 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-03-31 08:25:54 +0900
commit0bd4781d40ffc3bff939a2540041144b99c373b8 (patch)
tree3ac98a62c1c8ff4d07681cc57329b41db8c5a2be /arch/sh/kernel/setup.c
parentsh: ap325rxa: Add ov772x support, again. (diff)
downloadlinux-dev-0bd4781d40ffc3bff939a2540041144b99c373b8.tar.xz
linux-dev-0bd4781d40ffc3bff939a2540041144b99c373b8.zip
sh: Fix up -Wformat-security whining.
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>
Diffstat (limited to 'arch/sh/kernel/setup.c')
-rw-r--r--arch/sh/kernel/setup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 24c60251f680..04a6004fccc4 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -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;
}