Re: [PATCH 2/9] dsa: mv88e6xxx: hide unused functions

2016-08-12 Thread David Miller
From: Arnd Bergmann Date: Wed, 10 Aug 2016 23:54:08 +0200 > When CONFIG_NET_DSA_HWMON is disabled, we get warnings about two unused > functions whose only callers are all inside of an #ifdef: > > drivers/net/dsa/mv88e6xxx.c:3257:12: 'mv88e6xxx_mdio_page_write' defined but > not used [-Werror=un

[PATCH 2/9] dsa: mv88e6xxx: hide unused functions

2016-08-10 Thread Arnd Bergmann
When CONFIG_NET_DSA_HWMON is disabled, we get warnings about two unused functions whose only callers are all inside of an #ifdef: drivers/net/dsa/mv88e6xxx.c:3257:12: 'mv88e6xxx_mdio_page_write' defined but not used [-Werror=unused-function] drivers/net/dsa/mv88e6xxx.c:3244:12: 'mv88e6xxx_mdio_pa