Skip to content

Commit 2703bc8

Browse files
kvalojmberg-intel
authored andcommitted
wifi: mac80211: rename ieee80211_tx_status() to ieee80211_tx_status_skb()
make htmldocs warns: Documentation/driver-api/80211/mac80211:109: ./include/net/mac80211.h:5170: WARNING: Duplicate C declaration, also defined at mac80211:1117. Declaration is '.. c:function:: void ieee80211_tx_status (struct ieee80211_hw *hw, struct sk_buff *skb)'. This is because there's a function named ieee80211_tx_status() and a struct named ieee80211_tx_status. This has been discussed previously but no solution found: https://lore.kernel.org/all/[email protected]/ There's also a bug open for three years with no solution in sight: sphinx-doc/sphinx#8313 So I guess we have no other solution than to a workaround this in the code, for example to rename the function to ieee80211_tx_status_skb() to avoid the name conflict. I got the idea for the name from ieee80211_tx_status_noskb() in which the skb is not provided as an argument, instead with ieee80211_tx_status_skb() the skb is provided. Compile tested only. Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent c3e5f5f commit 2703bc8

File tree

16 files changed

+37
-37
lines changed

16 files changed

+37
-37
lines changed

Documentation/driver-api/80211/mac80211.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ functions/definitions
120120
ieee80211_rx
121121
ieee80211_rx_ni
122122
ieee80211_rx_irqsafe
123-
ieee80211_tx_status
123+
ieee80211_tx_status_skb
124124
ieee80211_tx_status_ni
125125
ieee80211_tx_status_irqsafe
126126
ieee80211_rts_get

drivers/net/wireless/ath/ath12k/dp_tx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ ath12k_dp_tx_htt_tx_complete_buf(struct ath12k_base *ab,
401401
}
402402
}
403403

404-
ieee80211_tx_status(ar->hw, msdu);
404+
ieee80211_tx_status_skb(ar->hw, msdu);
405405
}
406406

407407
static void
@@ -498,7 +498,7 @@ static void ath12k_dp_tx_complete_msdu(struct ath12k *ar,
498498
* Might end up reporting it out-of-band from HTT stats.
499499
*/
500500

501-
ieee80211_tx_status(ar->hw, msdu);
501+
ieee80211_tx_status_skb(ar->hw, msdu);
502502

503503
exit:
504504
rcu_read_unlock();

drivers/net/wireless/ath/ath5k/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ ath5k_tx_frame_completed(struct ath5k_hw *ah, struct sk_buff *skb,
17701770
ah->stats.antenna_tx[0]++; /* invalid */
17711771

17721772
trace_ath5k_tx_complete(ah, skb, txq, ts);
1773-
ieee80211_tx_status(ah->hw, skb);
1773+
ieee80211_tx_status_skb(ah->hw, skb);
17741774
}
17751775

17761776
static void

drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static void ath9k_htc_tx_process(struct ath9k_htc_priv *priv,
523523
}
524524

525525
/* Send status to mac80211 */
526-
ieee80211_tx_status(priv->hw, skb);
526+
ieee80211_tx_status_skb(priv->hw, skb);
527527
}
528528

529529
static inline void ath9k_htc_tx_drainq(struct ath9k_htc_priv *priv,

drivers/net/wireless/ath/ath9k/xmit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void ath_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
9494

9595
if (info->flags & (IEEE80211_TX_CTL_REQ_TX_STATUS |
9696
IEEE80211_TX_STATUS_EOSP)) {
97-
ieee80211_tx_status(hw, skb);
97+
ieee80211_tx_status_skb(hw, skb);
9898
return;
9999
}
100100

drivers/net/wireless/broadcom/b43/dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,9 +1531,9 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
15311531
ring->nr_failed_tx_packets++;
15321532
ring->nr_total_packet_tries += status->frame_count;
15331533
#endif /* DEBUG */
1534-
ieee80211_tx_status(dev->wl->hw, meta->skb);
1534+
ieee80211_tx_status_skb(dev->wl->hw, meta->skb);
15351535

1536-
/* skb will be freed by ieee80211_tx_status().
1536+
/* skb will be freed by ieee80211_tx_status_skb().
15371537
* Poison our pointer. */
15381538
meta->skb = B43_DMA_PTR_POISON;
15391539
} else {

drivers/net/wireless/broadcom/b43/pio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ void b43_pio_handle_txstatus(struct b43_wldev *dev,
582582
q->buffer_used -= total_len;
583583
q->free_packet_slots += 1;
584584

585-
ieee80211_tx_status(dev->wl->hw, pack->skb);
585+
ieee80211_tx_status_skb(dev->wl->hw, pack->skb);
586586
pack->skb = NULL;
587587
list_add(&pack->list, &q->packets_list);
588588

drivers/net/wireless/intel/iwlwifi/dvm/tx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ void iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb)
12471247

12481248
while (!skb_queue_empty(&skbs)) {
12491249
skb = __skb_dequeue(&skbs);
1250-
ieee80211_tx_status(priv->hw, skb);
1250+
ieee80211_tx_status_skb(priv->hw, skb);
12511251
}
12521252
}
12531253

@@ -1384,6 +1384,6 @@ void iwlagn_rx_reply_compressed_ba(struct iwl_priv *priv,
13841384

13851385
while (!skb_queue_empty(&reclaimed_skbs)) {
13861386
skb = __skb_dequeue(&reclaimed_skbs);
1387-
ieee80211_tx_status(priv->hw, skb);
1387+
ieee80211_tx_status_skb(priv->hw, skb);
13881388
}
13891389
}

drivers/net/wireless/intel/iwlwifi/mvm/tx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ static void iwl_mvm_rx_tx_cmd_single(struct iwl_mvm *mvm,
17241724
RS_DRV_DATA_PACK(lq_color, tx_resp->reduced_tpc);
17251725

17261726
if (likely(!iwl_mvm_time_sync_frame(mvm, skb, hdr->addr1)))
1727-
ieee80211_tx_status(mvm->hw, skb);
1727+
ieee80211_tx_status_skb(mvm->hw, skb);
17281728
}
17291729

17301730
/* This is an aggregation queue or might become one, so we use
@@ -2080,7 +2080,7 @@ static void iwl_mvm_tx_reclaim(struct iwl_mvm *mvm, int sta_id, int tid,
20802080

20812081
while (!skb_queue_empty(&reclaimed_skbs)) {
20822082
skb = __skb_dequeue(&reclaimed_skbs);
2083-
ieee80211_tx_status(mvm->hw, skb);
2083+
ieee80211_tx_status_skb(mvm->hw, skb);
20842084
}
20852085
}
20862086

drivers/net/wireless/mediatek/mt7601u/tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void mt7601u_tx_status(struct mt7601u_dev *dev, struct sk_buff *skb)
110110
info->flags |= IEEE80211_TX_STAT_ACK;
111111

112112
spin_lock_bh(&dev->mac_lock);
113-
ieee80211_tx_status(dev->hw, skb);
113+
ieee80211_tx_status_skb(dev->hw, skb);
114114
spin_unlock_bh(&dev->mac_lock);
115115
}
116116

0 commit comments

Comments
 (0)