ath9k and ath9k_htc: rename variable "led_blink"
authorHong Xu <hong@topbug.net>
Sat, 24 Jan 2015 11:34:03 +0000 (03:34 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Jan 2015 18:06:27 +0000 (20:06 +0200)
ath9k and ath9k_htc use the variable name "led_blink" to indicate
whether the module parameter "blink" is on. This name is easy to
conflict with other variables, and has caused a compiler error found
by kbuild test bot. The compiler error is as following:

drivers/net/wireless/ath/ath9k/ath9k_htc.o:(.data+0x47c): multiple definition of `led_blink'
drivers/net/wireless/ath/ath9k/ath9k.o:(.bss+0x20): first defined here

Fixes: 3a939a671225 ("ath9k_htc: Add a module parameter to disable blink")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Hong Xu <hong@topbug.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/gpio.c
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/htc_drv_gpio.c
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/init.c

index 1a9fe0983a6be647010a009bd1e7e7be3ff7fb6d..e84b5769deb0ede5b40ab50f37c4a99ed7330f59 100644 (file)
@@ -34,7 +34,7 @@ struct ath_vif;
 
 extern struct ieee80211_ops ath9k_ops;
 extern int ath9k_modparam_nohwcrypt;
-extern int led_blink;
+extern int ath9k_led_blink;
 extern bool is_ath9k_unloaded;
 extern int ath9k_use_chanctx;
 
index 2fef7a480fec9a8c1013104dc61de38b1e1ad94c..da344b27326c9f036e0ebef1ac9d48c5179a7134 100644 (file)
@@ -49,7 +49,7 @@ void ath_init_leds(struct ath_softc *sc)
        if (AR_SREV_9100(sc->sc_ah))
                return;
 
-       if (!led_blink)
+       if (!ath9k_led_blink)
                sc->led_cdev.default_trigger =
                        ieee80211_get_radio_led_name(sc->hw);
 
index c43fec51b8ec8fd4bdcd1e4fb6692e7004c1e816..300d3671d0ef820dc99cb5c202cd7945437a13b6 100644 (file)
@@ -45,7 +45,7 @@
 extern struct ieee80211_ops ath9k_htc_ops;
 extern int htc_modparam_nohwcrypt;
 #ifdef CONFIG_MAC80211_LEDS
-extern int led_blink;
+extern int ath9k_htc_led_blink;
 #endif
 
 enum htc_phymode {
index 998b558d4126bad40ced970a1d6a08cc121cbd97..2aabcbdaba4e15f93cd4f8924c922e480fa8d8dd 100644 (file)
@@ -279,7 +279,7 @@ void ath9k_init_leds(struct ath9k_htc_priv *priv)
        else
                priv->ah->led_pin = ATH_LED_PIN_DEF;
 
-       if (!led_blink)
+       if (!ath9k_htc_led_blink)
                priv->led_cdev.default_trigger =
                        ieee80211_get_radio_led_name(priv->hw);
 
index 947012757f8119526b2fd7ac59004fd5f76ad191..fd229409f6762249061f1215a5c4e635de3ec9ae 100644 (file)
@@ -39,8 +39,8 @@ module_param_named(ps_enable, ath9k_ps_enable, int, 0444);
 MODULE_PARM_DESC(ps_enable, "Enable WLAN PowerSave");
 
 #ifdef CONFIG_MAC80211_LEDS
-int led_blink = 1;
-module_param_named(blink, led_blink, int, 0444);
+int ath9k_htc_led_blink = 1;
+module_param_named(blink, ath9k_htc_led_blink, int, 0444);
 MODULE_PARM_DESC(blink, "Enable LED blink on activity");
 
 static const struct ieee80211_tpt_blink ath9k_htc_tpt_blink[] = {
index d1c39346b2643c1f0b51c4c4ba071616e57863b9..2aef14e47c397d5f2c9ce66213755517f3e74fe5 100644 (file)
@@ -45,8 +45,8 @@ int ath9k_modparam_nohwcrypt;
 module_param_named(nohwcrypt, ath9k_modparam_nohwcrypt, int, 0444);
 MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption");
 
-int led_blink;
-module_param_named(blink, led_blink, int, 0444);
+int ath9k_led_blink;
+module_param_named(blink, ath9k_led_blink, int, 0444);
 MODULE_PARM_DESC(blink, "Enable LED blink on activity");
 
 static int ath9k_btcoex_enable;
This page took 0.029216 seconds and 5 git commands to generate.