public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix build failure w. gcc-4.3.3
@ 2009-01-30 10:28 Manuel Lauss
  2009-01-31  8:46 ` Manuel Lauss
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Manuel Lauss @ 2009-01-30 10:28 UTC (permalink / raw)
  To: linux-sh

gcc-4.3.3 likes to have printf() and related functions to have
at least 2 arguments when the format string is not a constant:

cc1: warnings being treated as error
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: Manuel Lauss <mano@roarinelk.homelinux.net>
---
 arch/sh/kernel/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 5342475..72a08f6 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -108,7 +108,7 @@ static int __init early_parse_mem(char *p)
 			"is not allowed.\n"
 			"  Recompile the kernel with the correct value for "
 			"CONFIG_MEMORY_SIZE.\n";
-		printk(msg);
+		printk("%s", msg);
 		return 0;
 	}
 
-- 
1.6.1.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-31 17:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30 10:28 [PATCH] fix build failure w. gcc-4.3.3 Manuel Lauss
2009-01-31  8:46 ` Manuel Lauss
2009-01-31 16:56 ` Mike Frysinger
2009-01-31 17:13 ` Manuel Lauss
2009-01-31 17:35 ` Mike Frysinger
2009-01-31 17:53 ` Manuel Lauss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox