]> git.sur5r.net Git - u-boot/commitdiff
sunxi: Avoid unused variable warning.
authorIan Campbell <ijc@hellion.org.uk>
Sun, 6 Jul 2014 19:03:20 +0000 (20:03 +0100)
committerIan Campbell <ijc@hellion.org.uk>
Tue, 8 Jul 2014 06:45:06 +0000 (07:45 +0100)
Mark rc as __maybe_unused since it is infact unused on systems with neither
EMAC nor GMAC.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Acked-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/sunxi/board.c

index 1e506b5176e0cf40ce493c709fe24dbfc48892bb..538ffa70a3a6f376722ad024d94569e073017a6c 100644 (file)
@@ -24,6 +24,8 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/timer.h>
 
+#include <linux/compiler.h>
+
 #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);