Skip to contentSkip to conversation

mac80211: add dependency for MAC80211_LEDS

PATCH In review Liwei Song 2 participants 3 messages Jun 24, 2021

Subsystems (3)
lore
Share & tools
lore

Liwei Song

author
#0 lore raw

PATCH 1/1 mac80211: add dependency for MAC80211_LEDS

Let MAC80211_LEDS depends on LEDS_CLASS=IWLWIFI to fix the below warning:

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]:
- IWLWIFI_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_INTEL [=y] && IWLWIFI [=m] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=IWLWIFI [=m]) && (IWLMVM [=m] || IWLDVM [=m])

---
 net/mac80211/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/Kconfig +1 -1
index 51ec8256b7fa..918a11fed563 100644
@@ -69,7 +69,7 @@ config MAC80211_MESH
 config MAC80211_LEDS
 	bool "Enable LED triggers"
 	depends on MAC80211
-	depends on LEDS_CLASS=y || LEDS_CLASS=MAC80211
+	depends on LEDS_CLASS=y || LEDS_CLASS=MAC80211 || LEDS_CLASS=IWLWIFI
 	select LEDS_TRIGGERS
 	help
 	  This option enables a few LED triggers for different
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 20 lines · Liwei Song

Let MAC80211_LEDS depends on LEDS_CLASS=IWLWIFI to fix the below warning:

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]:
  - IWLWIFI_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_INTEL [=y] && IWLWIFI [=m] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=IWLWIFI [=m]) && (IWLMVM [=m] || IWLDVM [=m])

---
 net/mac80211/Kconfig | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/Kconfig +0 -0
index 51ec8256b7fa..918a11fed563 100644
@@ -69,7 +69,7 @@ config MAC80211_MESH

 config MAC80211_LEDS
  bool "Enable LED triggers"
  depends on MAC80211

net/mac80211/Kconfig config MAC80211_MESH · line 72

Quoted 2 lines
net/mac80211/Kconfig +1 -1
-	depends on LEDS_CLASS=y || LEDS_CLASS=MAC80211
+	depends on LEDS_CLASS=y || LEDS_CLASS=MAC80211 || LEDS_CLASS=IWLWIFI

Eh, no. this is the wrong way around. If anything needs to be fixed, then it must be in iwlwifi, not the generic core part.

johannes

author
#2 lore raw
Quoted 13 lines · Johannes Berg
Quoted 12 lines · Liwei Song

Let MAC80211_LEDS depends on LEDS_CLASS=IWLWIFI to fix the below warning:

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]:
  - IWLWIFI_LEDS [=y] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_INTEL [=y] && IWLWIFI [=m] && (LEDS_CLASS [=m]=y || LEDS_CLASS [=m]=IWLWIFI [=m]) && (IWLMVM [=m] || IWLDVM [=m])

---
 net/mac80211/Kconfig | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

net/mac80211/Kconfig config MAC80211_MESH · line 72

Quoted 10 lines
net/mac80211/Kconfig +0 -0
index 51ec8256b7fa..918a11fed563 100644
@@ -69,7 +69,7 @@ config MAC80211_MESH

 config MAC80211_LEDS
  bool "Enable LED triggers"
  depends on MAC80211

net/mac80211/Kconfig +1 -1
-	depends on LEDS_CLASS=y || LEDS_CLASS=MAC80211
+	depends on LEDS_CLASS=y || LEDS_CLASS=MAC80211 || LEDS_CLASS=IWLWIFI

Eh, no. this is the wrong way around. If anything needs to be fixed, then it must be in iwlwifi, not the generic core part.

Got it and thanks, I will try fix it in iwlwifi.

Thanks,
Liwei.

Quoted 3 lines

johannes