Skip to contentSkip to conversation

ath5k: fix 'mode' kernel-doc warning in ath5k_hw_pcu_init()

PATCH In review Wang Hai 2 participants 2 messages Sep 9, 2020 – Sep 10, 2020

Subsystems (3)
lore
Share & tools
lore

Wang Hai

author
#0 lore raw

PATCH 1/1 ath5k: fix 'mode' kernel-doc warning in ath5k_hw_pcu_init()

Fixes the following W=1 kernel build warning(s):

drivers/net/wireless/ath/ath5k/pcu.c:955: warning: Excess function parameter 'mode' description in 'ath5k_hw_pcu_init'

This parameter is not in use. Remove it.

---
 drivers/net/wireless/ath/ath5k/pcu.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/ath/ath5k/pcu.c +0 -1
index 05140d8baa36..3df5f27708fc 100644
@@ -945,7 +945,6 @@ ath5k_hw_set_opmode(struct ath5k_hw *ah, enum nl80211_iftype op_mode)
  * ath5k_hw_pcu_init() - Initialize PCU
  * @ah: The &struct ath5k_hw
  * @op_mode: One of enum nl80211_iftype
- * @mode: One of enum ath5k_driver_mode
  *
  * This function is used to initialize PCU by setting current
  * operation mode and various other settings.
Signature · 1 line
2.17.1
#1 lore raw
Quoted 8 lines · Wang Hai

Fixes the following W=1 kernel build warning(s):

drivers/net/wireless/ath/ath5k/pcu.c:955: warning: Excess function parameter 'mode' description in 'ath5k_hw_pcu_init'

This parameter is not in use. Remove it.

Already fixed in ath.git.

error: patch failed: drivers/net/wireless/ath/ath5k/pcu.c:945
error: drivers/net/wireless/ath/ath5k/pcu.c: patch does not apply stg import: Diff does not apply cleanly

Patch set to Rejected.

Signature · 3 lines
https://patchwork.kernel.org/patch/11765471/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches