]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb32a267b4b03ccca210cf56cc6844cae96f9a6b7
tree6c5da7ce48dbf1c0185e8f91b061b0b6012a6b63
parent40fbd696113fd0df618dc730e9f0b29bbed054d9
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