OpenCloudOS-Kernel/drivers/net/wireless/ath/carl9170
Randy Dunlap 272fdc0c45 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: 1d7e1e6b1b ("carl9170: Makefile, Kconfig files and MAINTAINERS")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: Christian Lamparter <chunkeey@googlemail.com>
Cc: linux-wireless@vger.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Christian Lamparter <chunkeey@googlemail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210530031134.23274-1-rdunlap@infradead.org
2021-06-12 13:37:46 +03:00
..
Kconfig wireless: carl9170: fix LEDS build errors & warnings 2021-06-12 13:37:46 +03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
carl9170.h carl9170: remove get_tid_h 2021-04-18 09:35:43 +03:00
cmd.c
cmd.h
debug.c carl9170: remove trailing semicolon in macro definition 2020-12-08 09:45:36 +02:00
debug.h
eeprom.h
fw.c carl9170: remove P2P_GO support 2020-05-06 09:14:20 +03:00
fwcmd.h carl9170: fix struct alignment conflict 2021-02-09 09:24:20 +02:00
fwdesc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 325 2019-06-05 17:37:06 +02:00
hw.h carl9170: Replace zero-length array with flexible-array 2020-05-12 10:31:49 +03:00
led.c
mac.c carl9170: remove WDS code 2020-11-11 08:39:13 +01:00
main.c carl9170: remove WDS code 2020-11-11 08:39:13 +01:00
phy.c
phy.h
rx.c carl9170: Use fallthrough pseudo-keyword 2020-08-27 13:20:26 +03:00
tx.c carl9170: remove get_tid_h 2021-04-18 09:35:43 +03:00
usb.c carl9170: convert tasklets to use new tasklet_setup() API 2020-08-27 13:21:34 +03:00
version.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wlan.h carl9170: fix struct alignment conflict 2021-02-09 09:24:20 +02:00