Skip to contentSkip to conversation

ath9k: Fix compilation error

PATCH Applied Sujith Manoharan 2 participants 2 messages Mar 20, 2015 – Mar 21, 2015 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: Fix compilation error

From: Sujith Manoharan <[email protected]>

AIC needs to be registered only when BTCOEX is enabled. This fixes the error reported by kbuild:

Quoted 1 line
Quoted 1 line

ERROR: "ar9003_hw_attach_aic_ops" [drivers/net/wireless/ath/ath9k/ath9k_hw.ko] undefined!

---
 drivers/net/wireless/ath/ath9k/hw.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath9k/hw.h +4 -2
index c22edd3..aaec945 100644
@@ -1117,8 +1117,6 @@ void ar9003_hw_attach_calib_ops(struct ath_hw *ah);
 int ar9002_hw_attach_ops(struct ath_hw *ah);
 void ar9003_hw_attach_ops(struct ath_hw *ah);
 
-void ar9003_hw_attach_aic_ops(struct ath_hw *ah);
-
 void ar9002_hw_load_ani_reg(struct ath_hw *ah, struct ath9k_channel *chan);
 
 void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning);
@@ -1129,6 +1127,7 @@ void ath9k_hw_set_cts_timeout(struct ath_hw *ah, u32 us);
 void ath9k_hw_setslottime(struct ath_hw *ah, u32 us);
 
 #ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
+void ar9003_hw_attach_aic_ops(struct ath_hw *ah);
 static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
 {
 	return ah->btcoex_hw.enabled;
@@ -1146,6 +1145,9 @@ ath9k_hw_get_btcoex_scheme(struct ath_hw *ah)
 	return ah->btcoex_hw.scheme;
 }
 #else
+static inline void ar9003_hw_attach_aic_ops(struct ath_hw *ah)
+{
+}
 static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
 {
 	return false;
Signature · 1 line
2.3.1
Applied
#1 lore raw

[ath9k-devel] ath9k: Fix AIC compilation error

Quoted 9 lines

From: Sujith Manoharan <[email protected]>

AIC needs to be registered only when BTCOEX is enabled. This fixes the error reported by kbuild:

Quoted 1 line
Quoted 1 line

ERROR: "ar9003_hw_attach_aic_ops" [drivers/net/wireless/ath/ath9k/ath9k_hw.ko] undefined!

Thanks, applied to wireless-drivers-next.git.

Kalle Valo