summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mediatek
diff options
context:
space:
mode:
authorSamuel Zou <zou_wei@huawei.com>2020-05-06 08:27:30 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-06 23:03:15 +0200
commit2f8649900b7d0dced6aff0765ea15e874a91b73c (patch)
tree7502ab17150e2a5b9a921269003e2deb5b900934 /drivers/net/ethernet/mediatek
parentnet: mlx4: remove unneeded variable "err" in mlx4_en_get_rxfh() (diff)
downloadlinux-2f8649900b7d0dced6aff0765ea15e874a91b73c.tar.xz
linux-2f8649900b7d0dced6aff0765ea15e874a91b73c.zip
net: ethernet: mediatek: Make mtk_m32 static
Fix the following sparse warning: drivers/net/ethernet/mediatek/mtk_eth_soc.c:68:5: warning: symbol 'mtk_m32' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Samuel Zou <zou_wei@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
-rw-r--r--drivers/net/ethernet/mediatek/mtk_eth_soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 09047109d0da..2822268220f7 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -65,7 +65,7 @@ u32 mtk_r32(struct mtk_eth *eth, unsigned reg)
return __raw_readl(eth->base + reg);
}
-u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)
+static u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg)
{
u32 val;