From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Sun, 6 Jul 2014 21:18:44 +0200 Subject: [U-Boot] [PATCH v3 00/10] sunxi: Bug fixes, sun4i and sun5i support and network improvements In-Reply-To: <1404673937.4003.6.camel@hastur.hellion.org.uk> References: <1402306622-18485-1-git-send-email-hdegoede@redhat.com> <1404673937.4003.6.camel@hastur.hellion.org.uk> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Ian, Slightly off-topic, but... When you provide some code excerpt, you should make sure it doesn't look like a git patch, because if it does, then our Patchwork, which reads the list, will think it is actually a patch submission: http://patchwork.ozlabs.org/patch/367391/ Amicalement, Albert. On Sun, 06 Jul 2014 20:12:17 +0100, Ian Campbell wrote: > 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);