Message ID | 20190319151927.19392-1-yuehaibing@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bdfc4027de15ef0a396b7fc49a9f9c094378e9f4 |
Delegated to: | Kalle Valo |
Headers | show |
Series | rtl8723ae: Make rtl8723e_dm_refresh_rate_adaptive_mask static | expand |
On Tue, 2019-03-19 at 23:19 +0800, Yue Haibing wrote: > From: YueHaibing <yuehaibing@huawei.com> > > Fix sparse warning: > > drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c:666:6: > warning: symbol 'rtl8723e_dm_refresh_rate_adaptive_mask' was not declared. > Should it be static? > > Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> The mail subject should be 'rtlwifi: rtl8723ae: ....'. > --- > drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c > b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c > index 514891e..d8260c7 100644 > --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c > +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c > @@ -663,7 +663,7 @@ void rtl8723e_dm_init_rate_adaptive_mask(struct > ieee80211_hw *hw) > > } > > -void rtl8723e_dm_refresh_rate_adaptive_mask(struct ieee80211_hw *hw) > +static void rtl8723e_dm_refresh_rate_adaptive_mask(struct ieee80211_hw *hw) > { > struct rtl_priv *rtlpriv = rtl_priv(hw); > struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
Yue Haibing <yuehaibing@huawei.com> wrote: > From: YueHaibing <yuehaibing@huawei.com> > > Fix sparse warning: > > drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c:666:6: > warning: symbol 'rtl8723e_dm_refresh_rate_adaptive_mask' was not declared. Should it be static? > > Signed-off-by: YueHaibing <yuehaibing@huawei.com> > Acked-by: Ping-Ke Shih <pkshih@realtek.com> Patch applied to wireless-drivers-next.git, thanks. bdfc4027de15 rtlwifi: rtl8723ae: Make rtl8723e_dm_refresh_rate_adaptive_mask static
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c index 514891e..d8260c7 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/dm.c @@ -663,7 +663,7 @@ void rtl8723e_dm_init_rate_adaptive_mask(struct ieee80211_hw *hw) } -void rtl8723e_dm_refresh_rate_adaptive_mask(struct ieee80211_hw *hw) +static void rtl8723e_dm_refresh_rate_adaptive_mask(struct ieee80211_hw *hw) { struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));