From patchwork Fri Jan 30 10:28:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Lauss X-Patchwork-Id: 4730 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0UAZcM8027702 for ; Fri, 30 Jan 2009 10:35:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751368AbZA3Kfi (ORCPT ); Fri, 30 Jan 2009 05:35:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752050AbZA3Kfi (ORCPT ); Fri, 30 Jan 2009 05:35:38 -0500 Received: from fnoeppeil36.netpark.at ([217.175.205.164]:60775 "EHLO roarinelk.homelinux.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368AbZA3Kfh (ORCPT ); Fri, 30 Jan 2009 05:35:37 -0500 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Fri, 30 Jan 2009 05:35:36 EST Received: (qmail 13647 invoked by uid 1000); 30 Jan 2009 11:28:54 +0100 Date: Fri, 30 Jan 2009 11:28:54 +0100 From: Manuel Lauss To: Linux-SH Subject: [PATCH] fix build failure w. gcc-4.3.3 Message-ID: <20090130102854.GA13640@roarinelk.homelinux.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org 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 --- 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; }