* [PATCH] net: wireless: mediatek: fix mt76 LEDS build error
@ 2018-09-06 22:28 Randy Dunlap
2018-09-07 7:56 ` Lorenzo Bianconi
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2018-09-06 22:28 UTC (permalink / raw)
To: linux-wireless, Kalle Valo; +Cc: Felix Fietkau, netdev@vger.kernel.org
From: Randy Dunlap <rdunlap@infradead.org>
All of the mt76 driver options use its mac80211.o component,
which uses led interfaces, so each of them should depend on
LEDS_CLASS.
Fixes this build error:
drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_led_init':
drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined reference to `devm_of_led_classdev_register'
Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Kalle Valo <kvalo@codeaurora.org>
---
drivers/net/wireless/mediatek/mt76/Kconfig | 3 +++
1 file changed, 3 insertions(+)
--- linux-next-20180906.orig/drivers/net/wireless/mediatek/mt76/Kconfig
+++ linux-next-20180906/drivers/net/wireless/mediatek/mt76/Kconfig
@@ -18,6 +18,7 @@ config MT76x0U
tristate "MediaTek MT76x0U (USB) support"
select MT76_CORE
depends on MAC80211
+ depends on LEDS_CLASS
depends on USB
select MT76x02_LIB
help
@@ -28,6 +29,7 @@ config MT76x2E
select MT76_CORE
select MT76x2_COMMON
depends on MAC80211
+ depends on LEDS_CLASS
depends on PCI
---help---
This adds support for MT7612/MT7602/MT7662-based wireless PCIe devices.
@@ -38,6 +40,7 @@ config MT76x2U
select MT76_USB
select MT76x2_COMMON
depends on MAC80211
+ depends on LEDS_CLASS
depends on USB
help
This adds support for MT7612U-based wireless USB dongles.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] net: wireless: mediatek: fix mt76 LEDS build error
2018-09-06 22:28 [PATCH] net: wireless: mediatek: fix mt76 LEDS build error Randy Dunlap
@ 2018-09-07 7:56 ` Lorenzo Bianconi
2018-09-07 9:05 ` Kalle Valo
0 siblings, 1 reply; 5+ messages in thread
From: Lorenzo Bianconi @ 2018-09-07 7:56 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-wireless, Kalle Valo, Felix Fietkau, arnd
> From: Randy Dunlap <rdunlap@infradead.org>
>
> All of the mt76 driver options use its mac80211.o component,
> which uses led interfaces, so each of them should depend on
> LEDS_CLASS.
>
> Fixes this build error:
>
> drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_led_init':
> drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined reference to `devm_of_led_classdev_register'
>
> Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets")
>
Hi Randy,
a fix for it has been already proposed by Arnd here:
https://marc.info/?l=linux-wireless&m=151628136830540&w=2
but it has not been applied yet
Regards,
Lorenzo
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] net: wireless: mediatek: fix mt76 LEDS build error
2018-09-07 7:56 ` Lorenzo Bianconi
@ 2018-09-07 9:05 ` Kalle Valo
2018-09-19 16:07 ` Kalle Valo
0 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2018-09-07 9:05 UTC (permalink / raw)
To: Lorenzo Bianconi; +Cc: Randy Dunlap, linux-wireless, Felix Fietkau, arnd
Lorenzo Bianconi <lorenzo.bianconi@redhat.com> writes:
>> From: Randy Dunlap <rdunlap@infradead.org>
>>
>> All of the mt76 driver options use its mac80211.o component,
>> which uses led interfaces, so each of them should depend on
>> LEDS_CLASS.
>>
>> Fixes this build error:
>>
>> drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_led_init':
>> drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined
>> reference to `devm_of_led_classdev_register'
>>
>> Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets")
>>
>
> Hi Randy,
>
> a fix for it has been already proposed by Arnd here:
> https://marc.info/?l=linux-wireless&m=151628136830540&w=2
> but it has not been applied yet
Yet? Arnd's patch is not on my queue as it's from last January and Felix
had a comment for it:
https://patchwork.kernel.org/patch/10173197/
--
Kalle Valo
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] net: wireless: mediatek: fix mt76 LEDS build error
2018-09-07 9:05 ` Kalle Valo
@ 2018-09-19 16:07 ` Kalle Valo
2018-09-19 16:12 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2018-09-19 16:07 UTC (permalink / raw)
To: Lorenzo Bianconi; +Cc: Randy Dunlap, linux-wireless, Felix Fietkau, arnd
Kalle Valo <kvalo@codeaurora.org> writes:
> Lorenzo Bianconi <lorenzo.bianconi@redhat.com> writes:
>
>>> From: Randy Dunlap <rdunlap@infradead.org>
>>>
>>> All of the mt76 driver options use its mac80211.o component,
>>> which uses led interfaces, so each of them should depend on
>>> LEDS_CLASS.
>>>
>>> Fixes this build error:
>>>
>>> drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_led_init':
>>> drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined
>>> reference to `devm_of_led_classdev_register'
>>>
>>> Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets")
>>>
>>
>> Hi Randy,
>>
>> a fix for it has been already proposed by Arnd here:
>> https://marc.info/?l=linux-wireless&m=151628136830540&w=2
>> but it has not been applied yet
>
> Yet? Arnd's patch is not on my queue as it's from last January and Felix
> had a comment for it:
>
> https://patchwork.kernel.org/patch/10173197/
So what should we do? Arnd hasn't submitted a new patch so should we
take this one instead?
--
Kalle Valo
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] net: wireless: mediatek: fix mt76 LEDS build error
2018-09-19 16:07 ` Kalle Valo
@ 2018-09-19 16:12 ` Randy Dunlap
0 siblings, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2018-09-19 16:12 UTC (permalink / raw)
To: Kalle Valo, Lorenzo Bianconi; +Cc: linux-wireless, Felix Fietkau, arnd
On 9/19/18 9:07 AM, Kalle Valo wrote:
> Kalle Valo <kvalo@codeaurora.org> writes:
>
>> Lorenzo Bianconi <lorenzo.bianconi@redhat.com> writes:
>>
>>>> From: Randy Dunlap <rdunlap@infradead.org>
>>>>
>>>> All of the mt76 driver options use its mac80211.o component,
>>>> which uses led interfaces, so each of them should depend on
>>>> LEDS_CLASS.
>>>>
>>>> Fixes this build error:
>>>>
>>>> drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_led_init':
>>>> drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined
>>>> reference to `devm_of_led_classdev_register'
>>>>
>>>> Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets")
>>>>
>>>
>>> Hi Randy,
>>>
>>> a fix for it has been already proposed by Arnd here:
>>> https://marc.info/?l=linux-wireless&m=151628136830540&w=2
>>> but it has not been applied yet
>>
>> Yet? Arnd's patch is not on my queue as it's from last January and Felix
>> had a comment for it:
>>
>> https://patchwork.kernel.org/patch/10173197/
>
> So what should we do? Arnd hasn't submitted a new patch so should we
> take this one instead?
No. Arnd, can you resend your patch?
thanks,
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-09-19 21:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-06 22:28 [PATCH] net: wireless: mediatek: fix mt76 LEDS build error Randy Dunlap
2018-09-07 7:56 ` Lorenzo Bianconi
2018-09-07 9:05 ` Kalle Valo
2018-09-19 16:07 ` Kalle Valo
2018-09-19 16:12 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox