From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Tue, 08 Jul 2014 09:48:52 +0200 Subject: [U-Boot] [PATCH v3 00/10] sunxi: Bug fixes, sun4i and sun5i support and network improvements In-Reply-To: <1404764593.11284.41.camel@dagon.hellion.org.uk> References: <1402306622-18485-1-git-send-email-hdegoede@redhat.com> <1404673937.4003.6.camel@hastur.hellion.org.uk> <53BA97A6.1000901@redhat.com> <1404745842.30778.37.camel@kazak.uk.xensource.com> <20140707164702.GN29202@bill-the-cat> <1404764593.11284.41.camel@dagon.hellion.org.uk> Message-ID: <53BBA264.3040804@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 07/07/2014 10:23 PM, Ian Campbell wrote: > On Mon, 2014-07-07 at 12:47 -0400, Tom Rini wrote: >> That's not how we like things to look however when we can help it. Just >> toss a __maybe_unused in front of the declaration (and make sure we have >> included. > > OK. How about the following? > > Hans, BTW, I spotted this issue with: > CROSS_COMPILE=arm-linux-gnueabihf- ./MAKEALL -s sunxi > which is a very useful invocation indeed! Indeed, I've saved it for future reference. Regards, Hans > > 8<------------------- > > From 5e0659b772380114a9e86624aefd1dcb09a90bd9 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. > > Mark rc as __maybe_unused since it is infact unused on systems with neither > EMAC nor GMAC. > > Signed-off-by: Ian Campbell > --- > arch/arm/cpu/armv7/sunxi/board.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c > index 1e506b5..538ffa7 100644 > --- a/arch/arm/cpu/armv7/sunxi/board.c > +++ b/arch/arm/cpu/armv7/sunxi/board.c > @@ -24,6 +24,8 @@ > #include > #include > > +#include > + > #ifdef CONFIG_SPL_BUILD > /* Pointer to the global data structure for SPL */ > DECLARE_GLOBAL_DATA_PTR; > @@ -115,7 +117,7 @@ void enable_caches(void) > */ > int cpu_eth_init(bd_t *bis) > { > - int rc; > + __maybe_unused int rc; > > #ifdef CONFIG_SUNXI_EMAC > rc = sunxi_emac_initialize(bis); >