Message ID | 20210722105501.1000781-1-arnd@kernel.org (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Kalle Valo |
Headers | show |
Series | ath5k: fix building with LEDS=m | expand |
(oddly linux-wireless was dropped, adding it back in hopes that patchwork sees this) Arnd Bergmann <arnd@kernel.org> writes: > On Fri, Jul 23, 2021 at 10:41 AM kernel test robot <lkp@intel.com> wrote: >> >> All errors (new ones prefixed by >>): >> >> mips-linux-ld: drivers/net/wireless/ath/ath5k/led.o: in function >> `ath5k_register_led.constprop.0': >> >> led.c:(.text+0x58): undefined reference to `led_classdev_register_ext' >> mips-linux-ld: drivers/net/wireless/ath/ath5k/led.o: in function >> `ath5k_unregister_leds': >> >> led.c:(.text+0x1d8): undefined reference to `led_classdev_unregister' >> >> mips-linux-ld: led.c:(.text+0x208): undefined reference to >> >> `led_classdev_unregister' > > Ok, nevermind then, please ignore my patch. I don't see this > particular build failure on > my randconfig test box, which probably means I have some other patch > applied that > avoids this. I may get back to this in the future but can't figure it > out at the moment. > > My feeling now is that the 'select' should just be removed entirely, and then > we can have an 'if (!IS_ENABLED(CONFIG_MAC80211_LEDS)) return 0;' > in ath5k_register_led(). > > Arnd
diff --git a/drivers/net/wireless/ath/ath5k/Kconfig b/drivers/net/wireless/ath/ath5k/Kconfig index f35cd8de228e..6914b37bb0fb 100644 --- a/drivers/net/wireless/ath/ath5k/Kconfig +++ b/drivers/net/wireless/ath/ath5k/Kconfig @@ -3,9 +3,7 @@ config ATH5K tristate "Atheros 5xxx wireless cards support" depends on (PCI || ATH25) && MAC80211 select ATH_COMMON - select MAC80211_LEDS - select LEDS_CLASS - select NEW_LEDS + select MAC80211_LEDS if LEDS_CLASS=y || LEDS_CLASS=MAC80211 select ATH5K_AHB if ATH25 select ATH5K_PCI if !ATH25 help