From patchwork Sun Oct 23 21:58:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 121254 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 6722AB6F83 for ; Mon, 24 Oct 2011 08:59:05 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DD1DF287DA; Sun, 23 Oct 2011 23:59:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sJ7fceXtwQ1u; Sun, 23 Oct 2011 23:59:01 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 23D2C286FD; Sun, 23 Oct 2011 23:58:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 105E4286FD for ; Sun, 23 Oct 2011 23:58:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gGs7jlD664JW for ; Sun, 23 Oct 2011 23:58:56 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTP id A3BDE286FA for ; Sun, 23 Oct 2011 23:58:55 +0200 (CEST) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 68B01188B58E for ; Sun, 23 Oct 2011 23:59:12 +0200 (CEST) X-Auth-Info: XvaLFDs5mPweylACB5sHLtQlQUQ7MM5ijYrOiEnD/1k= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id D3F231C000B1 for ; Sun, 23 Oct 2011 23:58:54 +0200 (CEST) Received: from gemini.denx.de (unknown [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id AF00FC913106 for ; Sun, 23 Oct 2011 23:58:54 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id 7ED411408771; Sun, 23 Oct 2011 23:58:54 +0200 (CEST) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Sun, 23 Oct 2011 23:58:52 +0200 Message-Id: <1319407132-6590-1-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6.2 In-Reply-To: <1318552994-6653-9-git-send-email-sjg@chromium.org> References: <1318552994-6653-9-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH] arch/powerpc/lib/board.c: fix build warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Commit 1272592 "powerpc: Use getenv_ulong() in place of getenv(), strtoul" instroduced a build warning for some PPC systems: board.c: In function 'board_init_r': board.c:626: warning: unused variable 's' Fix it. Signed-off-by: Wolfgang Denk Acked-by: Simon Glass Acked-by: Heiko Schocher --- arch/powerpc/lib/board.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c index 6cb0ed6..aff1a0c 100644 --- a/arch/powerpc/lib/board.c +++ b/arch/powerpc/lib/board.c @@ -623,10 +623,11 @@ void board_init_f (ulong bootflag) */ void board_init_r (gd_t *id, ulong dest_addr) { - char *s; bd_t *bd; ulong malloc_start; - +#if defined(CONFIG_SYS_FLASH_CHECKSUM) || defined(CONFIG_CMD_NET) + char *s; +#endif #ifndef CONFIG_SYS_NO_FLASH ulong flash_size; #endif