From patchwork Sun Jul 6 19:12:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 367391 X-Patchwork-Delegate: trini@ti.com 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 846031400D3 for ; Mon, 7 Jul 2014 05:12:47 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4E8384B628; Sun, 6 Jul 2014 21:12:42 +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 k4WTCubUELMG; Sun, 6 Jul 2014 21:12:39 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 147404B61A; Sun, 6 Jul 2014 21:12:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 845174B61A for ; Sun, 6 Jul 2014 21:12:33 +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 8SRV-XrnroQm for ; Sun, 6 Jul 2014 21:12:30 +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 benson.vm.bytemark.co.uk (benson.vm.bytemark.co.uk [212.110.190.137]) by theia.denx.de (Postfix) with ESMTPS id B92E64B617 for ; Sun, 6 Jul 2014 21:12:26 +0200 (CEST) Received: from cpc22-cmbg14-2-0-cust482.5-4.cable.virginm.net ([86.6.25.227] helo=[192.168.1.164]) by benson.vm.bytemark.co.uk with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1X3rrG-0001Hv-10; Sun, 06 Jul 2014 20:12:18 +0100 Message-ID: <1404673937.4003.6.camel@hastur.hellion.org.uk> From: Ian Campbell To: Hans de Goede Date: Sun, 06 Jul 2014 20:12:17 +0100 In-Reply-To: <1402306622-18485-1-git-send-email-hdegoede@redhat.com> References: <1402306622-18485-1-git-send-email-hdegoede@redhat.com> X-Mailer: Evolution 3.8.5-2+b3 Mime-Version: 1.0 Cc: Schinagl , Oliver@theia.denx.de, Stefan Roese , u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v3 00/10] sunxi: Bug fixes, sun4i and sun5i support and network improvements X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de On Mon, 2014-06-09 at 11:36 +0200, Hans de Goede wrote: > Here is v2 of my patch series to be applied on top of Ian's recently merged > basic sun7i support. For the A13-OLinuXinoM and r7-tv-dongle with this series I'm seeing: arch/arm/cpu/armv7/sunxi/board.c: In function ‘cpu_eth_init’: arch/arm/cpu/armv7/sunxi/board.c:118:6: warning: unused variable ‘rc’ [-Wunused-variable] int rc; ^ because they both have neither EMAC or GMAC. This resolves it: 8<------------------ From 4eed69132de51d07586e7b070eda72297825a674 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Sun, 6 Jul 2014 20:03:20 +0100 Subject: [PATCH] sunxi: Avoid unused variable warning Signed-off-by: Ian Campbell --- arch/arm/cpu/armv7/sunxi/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index 1e506b5..f8db9e8 100644 --- a/arch/arm/cpu/armv7/sunxi/board.c +++ b/arch/arm/cpu/armv7/sunxi/board.c @@ -115,7 +115,9 @@ void enable_caches(void) */ int cpu_eth_init(bd_t *bis) { +#if defined(CONFIG_SUNXI_EMAC) || defined(CONFIG_SUNXI_GMAC) int rc; +#endif #ifdef CONFIG_SUNXI_EMAC rc = sunxi_emac_initialize(bis);