Skip to contentSkip to conversation

wireless: carl9170: fix LEDS build errors & warnings

PATCH In review Randy Dunlap 4 participants 8 messages May 30, 2021 – Jun 12, 2021 CARL9170 Linux community wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 wireless: carl9170: fix LEDS build errors & warnings

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS
Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y]) Selected by [m]:
- CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Fixes 1d7e1e6b1b8ed ("carl9170: Makefile, Kconfig files and MAINTAINERS")
Cc Kalle Valo <[email protected]>
Cc Christian Lamparter <[email protected]>
Cc Arnd Bergmann <[email protected]>

---
v2: modify as suggesed by Arnd
v3: modify as suggested by Christian

 drivers/net/wireless/ath/carl9170/Kconfig |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/ath/carl9170/Kconfig +3 -5
@@ -16,13 +16,11 @@ config CARL9170
 
 config CARL9170_LEDS
 	bool "SoftLED Support"
-	depends on CARL9170
-	select MAC80211_LEDS
-	select LEDS_CLASS
-	select NEW_LEDS
 	default y
+	depends on CARL9170
+	depends on MAC80211_LEDS
 	help
-	  This option is necessary, if you want your device' LEDs to blink
+	  This option is necessary, if you want your device's LEDs to blink.
 
 	  Say Y, unless you need the LEDs for firmware debugging.
 
Acked-by on v3 1/1
#1 lore raw
Quoted 25 lines · Randy Dunlap

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS
Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y]) Selected by [m]:
- CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Fixes 1d7e1e6b1b8ed ("carl9170: Makefile, Kconfig files and MAINTAINERS")
Cc Kalle Valo <[email protected]>
Cc Christian Lamparter <[email protected]>
Cc Arnd Bergmann <[email protected]>
Quoted 3 lines

---
v2: modify as suggesed by Arnd
v3: modify as suggested by Christian

Looks good to me,

Quoted 7 lines
drivers/net/wireless/ath/carl9170/Kconfig +0 -1
@@ -16,13 +16,11 @@ config CARL9170
 
 config CARL9170_LEDS
        bool "SoftLED Support"
-       depends on CARL9170

drivers/net/wireless/ath/carl9170/Kconfig config CARL9170 · line 24

Quoted 10 lines
drivers/net/wireless/ath/carl9170/Kconfig +3 -4
-       select MAC80211_LEDS
-       select LEDS_CLASS
-       select NEW_LEDS
        default y
+       depends on CARL9170
+       depends on MAC80211_LEDS
        help
-         This option is necessary, if you want your device' LEDs to blink
+         This option is necessary, if you want your device's LEDs to blink.
 

I see some other drivers using a similar approach, but then making the symbol silent. This also makes sense to me, but more importantly it would be good to be consistent across drivers, and eventually move them all to one model. Ideally that would avoid the 'select NEW_LEDS' entirely.

Arnd

Acked-by on v3 1/1
#2 lore raw
In reply to Randy Dunlap
Quoted 9 lines · Randy Dunlap

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS
Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y]) Selected by [m]:
- CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

Quoted 6 lines

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Ok, this is not what I was expecting... I though you would just add a "depends on / imply MAC80211_LEDS" on your v2. (this was based on the assumption of what mac80211, ath9k/_htc and mt76 solutions of the same problem looked like).

But since (I assuming here) this patch passed the build-bots testing with flying colors in the different config permutations.

Quoted 33 lines
Fixes 1d7e1e6b1b8ed ("carl9170: Makefile, Kconfig files and MAINTAINERS")
Cc Kalle Valo <[email protected]>
Cc Christian Lamparter <[email protected]>
Cc Arnd Bergmann <[email protected]>

---
v2: modify as suggesed by Arnd
v3: modify as suggested by Christian

  drivers/net/wireless/ath/carl9170/Kconfig |    8 +++-----
  1 file changed, 3 insertions(+), 5 deletions(-)
drivers/net/wireless/ath/carl9170/Kconfig +3 -5
@@ -16,13 +16,11 @@ config CARL9170
 
  config CARL9170_LEDS
  	bool "SoftLED Support"
-	depends on CARL9170
-	select MAC80211_LEDS
-	select LEDS_CLASS
-	select NEW_LEDS
  	default y
+	depends on CARL9170
+	depends on MAC80211_LEDS
  	help
-	  This option is necessary, if you want your device' LEDs to blink
+	  This option is necessary, if you want your device's LEDs to blink.
 
  	  Say Y, unless you need the LEDs for firmware debugging.
#3 lore raw
Quoted 14 lines · Christian Lamparter
Quoted 13 lines · Randy Dunlap

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS
   Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y]) Selected by [m]:
   - CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Quoted 7 lines
Quoted 2 lines

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Ok, this is not what I was expecting... I though you would just add a "depends on / imply MAC80211_LEDS" on your v2. (this was based on the assumption of what mac80211,  ath9k/_htc and mt76 solutions of the same problem looked like).

Do you want the user choice/prompt removed, like MT76 is?

Quoted 2 lines

But since (I assuming here) this patch passed the build-bots testing with flying colors in the different config permutations.

It hasn't passed any build-bots testing that I know of. I did 8 combinations of kconfigs (well, 2 of them were invalid), but they all passed my own build testing.

Quoted 17 lines
Quoted 15 lines
Fixes 1d7e1e6b1b8ed ("carl9170: Makefile, Kconfig files and MAINTAINERS")
Cc Kalle Valo <[email protected]>
Cc Christian Lamparter <[email protected]>
Cc Arnd Bergmann <[email protected]>

---
v2: modify as suggesed by Arnd
v3: modify as suggested by Christian

  drivers/net/wireless/ath/carl9170/Kconfig |    8 +++-----

  1 file changed, 3 insertions(+), 5 deletions(-)
Quoted 17 lines
Quoted 8 lines
drivers/net/wireless/ath/carl9170/Kconfig +0 -0
@@ -16,13 +16,11 @@ config CARL9170

    config CARL9170_LEDS
      bool "SoftLED Support"
-    depends on CARL9170
-    select MAC80211_LEDS
-    select LEDS_CLASS

Quoted 8 lines

-    select NEW_LEDS
      default y
+    depends on CARL9170
+    depends on MAC80211_LEDS
      help
-      This option is necessary, if you want your device' LEDs to blink +      This option is necessary, if you want your device's LEDs to blink. Say Y, unless you need the LEDs for firmware debugging.

thanks.

Signature · 1 line
~Randy
#4 lore raw
Quoted 25 lines · Randy Dunlap
Quoted 16 lines · Christian Lamparter
Quoted 15 lines · Randy Dunlap

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y]) Selected by [m]:
   - CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Quoted 7 lines
Quoted 2 lines

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Ok, this is not what I was expecting... I though you would just add a "depends on / imply MAC80211_LEDS" on your v2. (this was based on the assumption of what mac80211,  ath9k/_htc and mt76 solutions of the same problem looked like).

Quoted 8 lines

Do you want the user choice/prompt removed, like MT76 is?

Quoted 2 lines

But since (I assuming here) this patch passed the build-bots testing with flying colors in the different config permutations.

It hasn't passed any build-bots testing that I know of. I did 8 combinations of kconfigs (well, 2 of them were invalid), but they all passed my own build testing.

So is this ok to take now? Or will there be v4?

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#5 lore raw
Quoted 29 lines · Kalle Valo
Quoted 27 lines · Randy Dunlap
Quoted 16 lines · Christian Lamparter
Quoted 15 lines · Randy Dunlap

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y]) Selected by [m]:
   - CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Quoted 7 lines
Quoted 2 lines

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Ok, this is not what I was expecting... I though you would just add a "depends on / imply MAC80211_LEDS" on your v2. (this was based on the assumption of what mac80211,  ath9k/_htc and mt76 solutions of the same problem looked like).

Do you want the user choice/prompt removed, like MT76 is?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

But since (I assuming here) this patch passed the build-bots testing with flying colors in the different config permutations.

It hasn't passed any build-bots testing that I know of. I did 8 combinations of kconfigs (well, 2 of them were invalid), but they all passed my own build testing.

So is this ok to take now? Or will there be v4?

It's all good AFAIK unless Christian wants something changed.

Christian?

Signature · 1 line
~Randy
#6 lore raw
Quoted 37 lines · Randy Dunlap
Quoted 36 lines · Kalle Valo
Quoted 33 lines · Randy Dunlap
Quoted 16 lines · Christian Lamparter
Quoted 15 lines · Randy Dunlap

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS
   Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] &&
(LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y])
   Selected by [m]:
   - CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] &&
WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Quoted 7 lines
Quoted 2 lines

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Ok, this is not what I was expecting... I though you would just add a "depends on / imply MAC80211_LEDS" on your v2. (this was based on the assumption of what mac80211,  ath9k/_htc and mt76 solutions of the same problem looked like).

Do you want the user choice/prompt removed, like MT76 is?

Quoted 2 lines

But since (I assuming here) this patch passed the build-bots testing with flying colors in the different config permutations.

It hasn't passed any build-bots testing that I know of. I did 8 combinations of kconfigs (well, 2 of them were invalid), but they all passed my own build testing.

Quoted 6 lines
Quoted 1 line

So is this ok to take now? Or will there be v4?

It's all good AFAIK unless Christian wants something changed.

Christian?

I think it's good. It's probably just that Kalle is busy. From what I know, if something was wrong there the build-bots would have already sent a letter.

Cheers,
Christian

#7 lore raw
In reply to Randy Dunlap
Quoted 16 lines · Randy Dunlap

kernel test robot reports over 200 build errors and warnings that are due to this Kconfig problem when CARL9170=m, MAC80211=y, and LEDS_CLASS=m.

WARNING: unmet direct dependencies detected for MAC80211_LEDS
Depends on [n]: NET [=y] && WIRELESS [=y] && MAC80211 [=y] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=MAC80211 [=y]) Selected by [m]:
- CARL9170_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && CARL9170 [=m]

CARL9170_LEDS selects MAC80211_LEDS even though its kconfig dependencies are not met. This happens because 'select' does not follow any Kconfig dependency chains.

Fix this by making CARL9170_LEDS depend on MAC80211_LEDS, where the latter supplies any needed dependencies on LEDS_CLASS.

Quoted 11 lines
Fixes 1d7e1e6b1b8ed ("carl9170: Makefile, Kconfig files and MAINTAINERS")
Cc Kalle Valo <[email protected]>
Cc Christian Lamparter <[email protected]>
Cc Arnd Bergmann <[email protected]>

Patch applied to ath-next branch of ath.git, thanks.

272fdc0c4542 wireless: carl9170: fix LEDS build errors & warnings

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

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