提交 71ebb4aa 编写于 作者: R Ron Rindjunsky 提交者: David S. Miller

mac80211: fix rx flow sparse errors, make functions static

This patch adds static declarations to functions in the Rx flow in order to
eliminate sparse errors
Signed-off-by: NRon Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 a8b47ea3
...@@ -1154,8 +1154,8 @@ static void ieee80211_sta_process_addba_request(struct net_device *dev, ...@@ -1154,8 +1154,8 @@ static void ieee80211_sta_process_addba_request(struct net_device *dev,
sta_info_put(sta); sta_info_put(sta);
} }
void ieee80211_send_delba(struct net_device *dev, const u8 *da, u16 tid, static void ieee80211_send_delba(struct net_device *dev, const u8 *da, u16 tid,
u16 initiator, u16 reason_code) u16 initiator, u16 reason_code)
{ {
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
......
...@@ -295,7 +295,7 @@ ieee80211_rx_h_parse_qos(struct ieee80211_txrx_data *rx) ...@@ -295,7 +295,7 @@ ieee80211_rx_h_parse_qos(struct ieee80211_txrx_data *rx)
} }
u32 ieee80211_rx_load_stats(struct ieee80211_local *local, static u32 ieee80211_rx_load_stats(struct ieee80211_local *local,
struct sk_buff *skb, struct sk_buff *skb,
struct ieee80211_rx_status *status) struct ieee80211_rx_status *status)
{ {
...@@ -1664,8 +1664,10 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, ...@@ -1664,8 +1664,10 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata,
* This is the actual Rx frames handler. as it blongs to Rx path it must * This is the actual Rx frames handler. as it blongs to Rx path it must
* be called with rcu_read_lock protection. * be called with rcu_read_lock protection.
*/ */
void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, struct sk_buff *skb, static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,
struct ieee80211_rx_status *status, u32 load) struct sk_buff *skb,
struct ieee80211_rx_status *status,
u32 load)
{ {
struct ieee80211_local *local = hw_to_local(hw); struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_sub_if_data *sdata; struct ieee80211_sub_if_data *sdata;
...@@ -1919,8 +1921,8 @@ u8 ieee80211_sta_manage_reorder_buf(struct ieee80211_hw *hw, ...@@ -1919,8 +1921,8 @@ u8 ieee80211_sta_manage_reorder_buf(struct ieee80211_hw *hw,
return 1; return 1;
} }
u8 ieee80211_rx_reorder_ampdu(struct ieee80211_local *local, static u8 ieee80211_rx_reorder_ampdu(struct ieee80211_local *local,
struct sk_buff *skb) struct sk_buff *skb)
{ {
struct ieee80211_hw *hw = &local->hw; struct ieee80211_hw *hw = &local->hw;
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册