aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-07-08 14:48:23 +0200
committerDavid S. Miller <davem@davemloft.net>2019-07-08 12:43:07 -0700
commit49db9228b8d83cbdef44b4757a393990f48b6d85 (patch)
tree9c34cb8ff0bcd8595da5a28a937fc77d3f660dc3 /net/core
parentgve: fix unused variable/label warnings (diff)
downloadlinux-dev-49db9228b8d83cbdef44b4757a393990f48b6d85.tar.xz
linux-dev-49db9228b8d83cbdef44b4757a393990f48b6d85.zip
macb: fix build warning for !CONFIG_OF
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@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions