Commit 949c4ef0 authored by Marcus Farkas's avatar Marcus Farkas Committed by Greg Kroah-Hartman

staging: rtl8821ae: fix sparse warning for static declarations

This commit fixes the following sparse warnings in ps.c:
  - 702: warning: symbol 'rtl_p2p_noa_ie' was not declared. Should it be static?
  - 802: warning: symbol 'rtl_p2p_action_ie' was not declared. Should it be static?
Signed-off-by: default avatarMarcus Farkas <marcus.farkas@finitebox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bd9dc62c
......@@ -699,7 +699,8 @@ void rtl_swlps_wq_callback(void *data)
}
void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void *data, unsigned int len)
static void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void *data,
unsigned int len)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct ieee80211_mgmt *mgmt = (void *)data;
......@@ -799,7 +800,8 @@ void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void *data, unsigned int len)
}
}
void rtl_p2p_action_ie(struct ieee80211_hw *hw, void *data, unsigned int len)
static void rtl_p2p_action_ie(struct ieee80211_hw *hw, void *data,
unsigned int len)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct ieee80211_mgmt *mgmt = (void *)data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment