All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath5k: fix building with LEDS=m
@ 2021-07-22 10:54 Arnd Bergmann
  2021-07-23  8:41 ` kernel test robot
  0 siblings, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2021-07-22 10:54 UTC (permalink / raw)
  To: Jiri Slaby, Nick Kossifidis, Luis Chamberlain, Kalle Valo
  Cc: Arnd Bergmann, David S. Miller, Jakub Kicinski, Johannes Berg,
	Krzysztof Kozlowski, Bob Copeland, John W. Linville,
	linux-wireless, netdev, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

Randconfig builds still show a failure for the ath5k driver,
similar to the one that was fixed for ath9k earlier:

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]:
  - ATH5K [=m] && NETDEVICES [=y] && WLAN [=y] && WLAN_VENDOR_ATH [=y] && (PCI [=y] || ATH25) && MAC80211 [=y]
net/mac80211/led.c: In function 'ieee80211_alloc_led_names':
net/mac80211/led.c:34:22: error: 'struct led_trigger' has no member named 'name'
   34 |         local->rx_led.name = kasprintf(GFP_KERNEL, "%srx",
      |                      ^

Copying the same logic from my ath9k patch makes this one work
as well.

Alternatively, we could just drop the 'select' from both ath5k and
ath9k.

Fixes: b64acb28da83 ("ath9k: fix build error with LEDS_CLASS=m")
Fixes: 72cdab808714 ("ath9k: Do not select MAC80211_LEDS by default")
Fixes: 3a078876caee ("ath5k: convert LED code to use mac80211 triggers")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/wireless/ath/ath5k/Kconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] ath5k: fix building with LEDS=m
  2021-07-22 10:54 [PATCH] ath5k: fix building with LEDS=m Arnd Bergmann
@ 2021-07-23  8:41 ` kernel test robot
  2021-07-23  8:58   ` Arnd Bergmann
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2021-07-23  8:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2104 bytes --]

Hi Arnd,

I love your patch! Yet something to improve:

[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on wireless-drivers/master ath6kl/ath-next v5.14-rc2 next-20210722]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Arnd-Bergmann/ath5k-fix-building-with-LEDS-m/20210722-185549
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
config: mips-gpr_defconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/c460f5a9358fefef32ba77149f41a31dc2eee04f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Arnd-Bergmann/ath5k-fix-building-with-LEDS-m/20210722-185549
        git checkout c460f5a9358fefef32ba77149f41a31dc2eee04f
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21215 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ath5k: fix building with LEDS=m
  2021-07-23  8:41 ` kernel test robot
@ 2021-07-23  8:58   ` Arnd Bergmann
  2021-08-01 11:40       ` Kalle Valo
  2021-09-20 12:23     ` Arnd Bergmann
  0 siblings, 2 replies; 6+ messages in thread
From: Arnd Bergmann @ 2021-07-23  8:58 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ath5k: fix building with LEDS=m
  2021-07-23  8:58   ` Arnd Bergmann
@ 2021-08-01 11:40       ` Kalle Valo
  2021-09-20 12:23     ` Arnd Bergmann
  1 sibling, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2021-08-01 11:40 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: kernel test robot, Jiri Slaby, Nick Kossifidis, Luis Chamberlain,
	kbuild-all, Arnd Bergmann, Jakub Kicinski, Johannes Berg,
	Krzysztof Kozlowski, Bob Copeland, John W. Linville,
	linux-wireless

(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

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ath5k: fix building with LEDS=m
@ 2021-08-01 11:40       ` Kalle Valo
  0 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2021-08-01 11:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

(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

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ath5k: fix building with LEDS=m
  2021-07-23  8:58   ` Arnd Bergmann
  2021-08-01 11:40       ` Kalle Valo
@ 2021-09-20 12:23     ` Arnd Bergmann
  1 sibling, 0 replies; 6+ messages in thread
From: Arnd Bergmann @ 2021-09-20 12:23 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

On Fri, Jul 23, 2021 at 10:58 AM Arnd Bergmann <arnd@kernel.org> wrote:
>
> 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().

I ended up running into the same build failure now, as it turns out that
was not related to my setup, it was just really rare for LEDS to be
disabled. v2 coming.

        Arnd

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-20 12:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 10:54 [PATCH] ath5k: fix building with LEDS=m Arnd Bergmann
2021-07-23  8:41 ` kernel test robot
2021-07-23  8:58   ` Arnd Bergmann
2021-08-01 11:40     ` Kalle Valo
2021-08-01 11:40       ` Kalle Valo
2021-09-20 12:23     ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.