net: mediatek: add missing static qualifier
authorWeijie Gao <weijie.gao@mediatek.com>
Wed, 19 Jul 2023 09:17:07 +0000 (17:17 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 13:40:50 +0000 (09:40 -0400)
mt7531_mmd_ind_read and mt753x_switch_init are defined without static.
Since they're not used outside this file, we should add them back.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
fixup to add static qualifier

drivers/net/mtk_eth.c

index 61a1c29..2b4a862 100644 (file)
@@ -436,7 +436,8 @@ static int mt7531_mii_ind_write(struct mtk_eth_priv *priv, u8 phy, u8 reg,
                             MDIO_ST_C22);
 }
 
-int mt7531_mmd_ind_read(struct mtk_eth_priv *priv, u8 addr, u8 devad, u16 reg)
+static int mt7531_mmd_ind_read(struct mtk_eth_priv *priv, u8 addr, u8 devad,
+                              u16 reg)
 {
        u8 phy_addr;
        int ret;
@@ -934,7 +935,7 @@ static int mt7531_setup(struct mtk_eth_priv *priv)
        return 0;
 }
 
-int mt753x_switch_init(struct mtk_eth_priv *priv)
+static int mt753x_switch_init(struct mtk_eth_priv *priv)
 {
        int ret;
        int i;