diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-03-30 19:25:54 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-03-30 19:25:54 -0400 |
commit | 0bd4781d40ffc3bff939a2540041144b99c373b8 (patch) | |
tree | 3ac98a62c1c8ff4d07681cc57329b41db8c5a2be /arch/sh | |
parent | 47131258765e3561475822a7838b7ed90e2f6990 (diff) |
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')
-rw-r--r-- | arch/sh/kernel/setup.c | 5 |
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) | |||
103 | size = memparse(p, &p); | 103 | size = memparse(p, &p); |
104 | 104 | ||
105 | if (size > __MEMORY_SIZE) { | 105 | if (size > __MEMORY_SIZE) { |
106 | static char msg[] __initdata = KERN_ERR | 106 | printk(KERN_ERR |
107 | "Using mem= to increase the size of kernel memory " | 107 | "Using mem= to increase the size of kernel memory " |
108 | "is not allowed.\n" | 108 | "is not allowed.\n" |
109 | " Recompile the kernel with the correct value for " | 109 | " Recompile the kernel with the correct value for " |
110 | "CONFIG_MEMORY_SIZE.\n"; | 110 | "CONFIG_MEMORY_SIZE.\n"); |
111 | printk(msg); | ||
112 | return 0; | 111 | return 0; |
113 | } | 112 | } |
114 | 113 | ||