Re: [PATCH] dsa: mv88e6xxx: hide unused functions

2016-06-27 Thread David Miller
From: Vivien Didelot Date: Thu, 23 Jun 2016 11:21:27 -0400 > Hi, > > Arnd Bergmann writes: > >> 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_w

Re: [PATCH] dsa: mv88e6xxx: hide unused functions

2016-06-23 Thread Vivien Didelot
Hi, Arnd Bergmann writes: > 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

[PATCH] dsa: mv88e6xxx: hide unused functions

2016-06-23 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