[U-Boot] [PATCH v3 00/10] sunxi: Bug fixes, sun4i and sun5i support and network improvements
Albert ARIBAUD
albert.u.boot at aribaud.net
Sun Jul 6 21:18:44 CEST 2014
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
<ijc at hellion.org.uk> 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 <ijc at hellion.org.uk>
> Date: Sun, 6 Jul 2014 20:03:20 +0100
> Subject: [PATCH] sunxi: Avoid unused variable warning
>
> Signed-off-by: Ian Campbell <ijc at hellion.org.uk>
> ---
> 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);
More information about the U-Boot
mailing list