[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190708.124329.1064143533263537490.davem@davemloft.net>
Date: Mon, 08 Jul 2019 12:43:29 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: nicolas.ferre@...rochip.com, palmer@...ive.com,
paul.walmsley@...ive.com, yash.shah@...ive.com,
harini.katakam@...inx.com, claudiu.beznea@...rochip.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: Re: [PATCH] [net-next] macb: fix build warning for !CONFIG_OF
From: Arnd Bergmann <arnd@...db.de>
Date: Mon, 8 Jul 2019 14:48:23 +0200
> When CONFIG_OF is disabled, we get a harmless warning about the
> newly added variable:
>
> drivers/net/ethernet/cadence/macb_main.c:48:39: error: 'mgmt' defined but not used [-Werror=unused-variable]
> static struct sifive_fu540_macb_mgmt *mgmt;
>
> Move the variable closer to its use inside of the #ifdef.
>
> Fixes: c218ad559020 ("macb: Add support for SiFive FU540-C000")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Applied, thanks Arnd.
Powered by blists - more mailing lists