staging: rtl8821ae: Fix sparse warning by making functions static.
authorAndreas Schlick <ninox@posteo.net>
Sat, 6 Sep 2014 08:13:09 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Sep 2014 05:01:09 +0000 (22:01 -0700)
Signed-off-by: Andreas Schlick <ninox@posteo.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/rtl8821ae/hw.c

index 1aa16612e2486fa1822b73538c0d5e08f31936a8..05391059a5ad37511ecc43f24c326080fd21e2dc 100644 (file)
@@ -1067,7 +1067,7 @@ static u16 _rtl8821ae_mdio_read(struct rtl_priv *rtlpriv, u8 addr)
        return ret;
 }
 
-void _rtl8821ae_mdio_write(struct rtl_priv *rtlpriv, u8 addr, u16 data)
+static void _rtl8821ae_mdio_write(struct rtl_priv *rtlpriv, u8 addr, u16 data)
 {
        u8 tmp = 0, count = 0;
 
@@ -1103,7 +1103,7 @@ static u8 _rtl8821ae_dbi_read(struct rtl_priv *rtlpriv, u16 addr)
        return ret;
 }
 
-void _rtl8821ae_dbi_write(struct rtl_priv *rtlpriv, u16 addr, u8 data)
+static void _rtl8821ae_dbi_write(struct rtl_priv *rtlpriv, u16 addr, u8 data)
 {
        u8 tmp = 0, count = 0;
        u16 wrtie_addr, remainder = addr % 4;
@@ -1327,7 +1327,7 @@ void _rtl8821ae_reset_pcie_interface_dma(struct ieee80211_hw *hw,
 #define MAC_ID_STATIC_FOR_BT_CLIENT_END                                3
 // -----------------------------------------------------------
 
-void rtl8821ae_macid_initialize_mediastatus(struct ieee80211_hw *hw)
+static void rtl8821ae_macid_initialize_mediastatus(struct ieee80211_hw *hw)
 {
        struct rtl_priv *rtlpriv = rtl_priv(hw);
        u8      media_rpt[4] = {RT_MEDIA_CONNECT, 1, \