diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-08-10 23:54:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-12 17:32:21 -0700 |
commit | 601bbae0bc10d4306857b93d84240b039b3d9a6c (patch) | |
tree | 5ea8ba0169bb3dd6831bbb0e7e25e976d9173343 /include/uapi/linux | |
parent | bbe11fab0b6c1d113776b2898e085bf4d1fdc607 (diff) |
dsa: mv88e6xxx: hide unused functions
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_page_read' defined but not used [-Werror=unused-function]
This adds another ifdef around the function definitions. The warnings
appeared after the functions were marked 'static', but the problem
was already there before that.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 57d3231057e9 ("net: dsa: mv88e6xxx: fix style issues")
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions