net: ethernet: mediatek: mark symbols static where possible
authorBaoyou Xie <baoyou.xie@linaro.org>
Fri, 30 Sep 2016 07:48:50 +0000 (15:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2016 05:23:47 +0000 (01:23 -0400)
commit3a82e78c131a8199d38cf653b523c8fa2909df65
tree6c5da7ce48dbf1c0185e8f91b061b0b6012a6b63
parent8efebd6e5e93283a72d7a014d6dd8130e6601352
net: ethernet: mediatek: mark symbols static where possible

We get 2 warnings when building kernel with W=1:
drivers/net/ethernet/mediatek/mtk_eth_soc.c:2041:5: warning: no previous prototype for 'mtk_get_link_ksettings' [-Wmissing-prototypes]
drivers/net/ethernet/mediatek/mtk_eth_soc.c:2052:5: warning: no previous prototype for 'mtk_set_link_ksettings' [-Wmissing-prototypes]

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
So this patch marks these functions with 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c