All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iwlwifi: mei: fix building iwlmei
@ 2022-03-16 18:36 Arnd Bergmann
  2022-03-16 18:53 ` Kalle Valo
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arnd Bergmann @ 2022-03-16 18:36 UTC (permalink / raw)
  To: Luca Coelho, Kalle Valo
  Cc: Arnd Bergmann, David S. Miller, Jakub Kicinski, Ayala Beker,
	Emmanuel Grumbach, linux-wireless, netdev, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

Building iwlmei without CONFIG_CFG80211 causes a link-time warning:

ld.lld: error: undefined symbol: ieee80211_hdrlen
>>> referenced by net.c
>>>               net/wireless/intel/iwlwifi/mei/net.o:(iwl_mei_tx_copy_to_csme) in archive drivers/built-in.a

Add an explicit dependency to avoid this. In theory it should not
be needed here, but it also seems pointless to allow IWLMEI
for configurations without CFG80211.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/wireless/intel/iwlwifi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

I see this warning on 5.17-rc8, but did not test it on linux-next,
which may already have a fix.

diff --git a/drivers/net/wireless/intel/iwlwifi/Kconfig b/drivers/net/wireless/intel/iwlwifi/Kconfig
index 85e704283755..a647a406b87b 100644
--- a/drivers/net/wireless/intel/iwlwifi/Kconfig
+++ b/drivers/net/wireless/intel/iwlwifi/Kconfig
@@ -139,6 +139,7 @@ config IWLMEI
 	tristate "Intel Management Engine communication over WLAN"
 	depends on INTEL_MEI
 	depends on PM
+	depends on CFG80211
 	help
 	  Enables the iwlmei kernel module.
 
-- 
2.29.2


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

* Re: [PATCH] iwlwifi: mei: fix building iwlmei
  2022-03-16 18:36 [PATCH] iwlwifi: mei: fix building iwlmei Arnd Bergmann
@ 2022-03-16 18:53 ` Kalle Valo
  2022-03-16 18:55 ` Grumbach, Emmanuel
  2022-03-17 14:15 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2022-03-16 18:53 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Luca Coelho, Arnd Bergmann, David S. Miller, Jakub Kicinski,
	Ayala Beker, Emmanuel Grumbach, linux-wireless, netdev,
	linux-kernel

Arnd Bergmann <arnd@kernel.org> writes:

> From: Arnd Bergmann <arnd@arndb.de>
>
> Building iwlmei without CONFIG_CFG80211 causes a link-time warning:
>
> ld.lld: error: undefined symbol: ieee80211_hdrlen
>>>> referenced by net.c
>>>>               net/wireless/intel/iwlwifi/mei/net.o:(iwl_mei_tx_copy_to_csme)
>>>> in archive drivers/built-in.a
>
> Add an explicit dependency to avoid this. In theory it should not
> be needed here, but it also seems pointless to allow IWLMEI
> for configurations without CFG80211.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/net/wireless/intel/iwlwifi/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> I see this warning on 5.17-rc8, but did not test it on linux-next,
> which may already have a fix.

I just sent the last pull request to v5.17. Luca, should I take this to
wireless-next? Ack?

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

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

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

* RE: [PATCH] iwlwifi: mei: fix building iwlmei
  2022-03-16 18:36 [PATCH] iwlwifi: mei: fix building iwlmei Arnd Bergmann
  2022-03-16 18:53 ` Kalle Valo
@ 2022-03-16 18:55 ` Grumbach, Emmanuel
  2022-03-17 11:06   ` Coelho, Luciano
  2022-03-17 14:15 ` Kalle Valo
  2 siblings, 1 reply; 5+ messages in thread
From: Grumbach, Emmanuel @ 2022-03-16 18:55 UTC (permalink / raw)
  To: Arnd Bergmann, Coelho, Luciano, Kalle Valo
  Cc: Arnd Bergmann, David S. Miller, Jakub Kicinski, Beker, Ayala,
	linux-wireless, netdev, linux-kernel

> 
> From: Arnd Bergmann <arnd@arndb.de>
> 
> Building iwlmei without CONFIG_CFG80211 causes a link-time warning:
> 
> ld.lld: error: undefined symbol: ieee80211_hdrlen
> >>> referenced by net.c
> >>>
> >>> net/wireless/intel/iwlwifi/mei/net.o:(iwl_mei_tx_copy_to_csme) in
> >>> archive drivers/built-in.a
> 
> Add an explicit dependency to avoid this. In theory it should not be needed
> here, but it also seems pointless to allow IWLMEI for configurations without
> CFG80211.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/net/wireless/intel/iwlwifi/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> I see this warning on 5.17-rc8, but did not test it on linux-next, which may
> already have a fix.
> 
> diff --git a/drivers/net/wireless/intel/iwlwifi/Kconfig
> b/drivers/net/wireless/intel/iwlwifi/Kconfig
> index 85e704283755..a647a406b87b 100644
> --- a/drivers/net/wireless/intel/iwlwifi/Kconfig
> +++ b/drivers/net/wireless/intel/iwlwifi/Kconfig
> @@ -139,6 +139,7 @@ config IWLMEI
>  	tristate "Intel Management Engine communication over WLAN"
>  	depends on INTEL_MEI
>  	depends on PM
> +	depends on CFG80211
>  	help
>  	  Enables the iwlmei kernel module.
> 

FWIW: Luca just merged the exact same patch internally. So
Acked-by: Emmanuel Grumbach <Emmanuel.grumbach@intel.com>

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

* Re: [PATCH] iwlwifi: mei: fix building iwlmei
  2022-03-16 18:55 ` Grumbach, Emmanuel
@ 2022-03-17 11:06   ` Coelho, Luciano
  0 siblings, 0 replies; 5+ messages in thread
From: Coelho, Luciano @ 2022-03-17 11:06 UTC (permalink / raw)
  To: kvalo, Grumbach, Emmanuel, arnd
  Cc: linux-wireless, Beker, Ayala, linux-kernel, davem, kuba, arnd, netdev

On Wed, 2022-03-16 at 18:55 +0000, Grumbach, Emmanuel wrote:
> > 
> > From: Arnd Bergmann <arnd@arndb.de>
> > 
> > Building iwlmei without CONFIG_CFG80211 causes a link-time warning:
> > 
> > ld.lld: error: undefined symbol: ieee80211_hdrlen
> > > > > referenced by net.c
> > > > > 
> > > > > net/wireless/intel/iwlwifi/mei/net.o:(iwl_mei_tx_copy_to_csme
> > > > > ) in
> > > > > archive drivers/built-in.a
> > 
> > Add an explicit dependency to avoid this. In theory it should not
> > be needed
> > here, but it also seems pointless to allow IWLMEI for
> > configurations without
> > CFG80211.
> > 
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> >  drivers/net/wireless/intel/iwlwifi/Kconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > I see this warning on 5.17-rc8, but did not test it on linux-next,
> > which may
> > already have a fix.
> > 
> > diff --git a/drivers/net/wireless/intel/iwlwifi/Kconfig
> > b/drivers/net/wireless/intel/iwlwifi/Kconfig
> > index 85e704283755..a647a406b87b 100644
> > --- a/drivers/net/wireless/intel/iwlwifi/Kconfig
> > +++ b/drivers/net/wireless/intel/iwlwifi/Kconfig
> > @@ -139,6 +139,7 @@ config IWLMEI
> >  	tristate "Intel Management Engine communication over WLAN"
> >  	depends on INTEL_MEI
> >  	depends on PM
> > +	depends on CFG80211
> >  	help
> >  	  Enables the iwlmei kernel module.
> > 
> 
> FWIW: Luca just merged the exact same patch internally. So
> Acked-by: Emmanuel Grumbach <Emmanuel.grumbach@intel.com>

Yeah, please take this.

Acked-by: Luca Coelho <luciano.coelho@intel.com>

--
Cheers,
Luca.

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

* Re: [PATCH] iwlwifi: mei: fix building iwlmei
  2022-03-16 18:36 [PATCH] iwlwifi: mei: fix building iwlmei Arnd Bergmann
  2022-03-16 18:53 ` Kalle Valo
  2022-03-16 18:55 ` Grumbach, Emmanuel
@ 2022-03-17 14:15 ` Kalle Valo
  2 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2022-03-17 14:15 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Luca Coelho, Arnd Bergmann, David S. Miller, Jakub Kicinski,
	Ayala Beker, Emmanuel Grumbach, linux-wireless, netdev,
	linux-kernel

Arnd Bergmann <arnd@kernel.org> wrote:

> From: Arnd Bergmann <arnd@arndb.de>
> 
> Building iwlmei without CONFIG_CFG80211 causes a link-time warning:
> 
> ld.lld: error: undefined symbol: ieee80211_hdrlen
> >>> referenced by net.c
> >>>               net/wireless/intel/iwlwifi/mei/net.o:(iwl_mei_tx_copy_to_csme) in archive drivers/built-in.a
> 
> Add an explicit dependency to avoid this. In theory it should not
> be needed here, but it also seems pointless to allow IWLMEI
> for configurations without CFG80211.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Acked-by: Emmanuel Grumbach <Emmanuel.grumbach@intel.com>
> Acked-by: Luca Coelho <luciano.coelho@intel.com>

Patch applied to wireless-next.git, thanks.

066291bec0c5 iwlwifi: mei: fix building iwlmei

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20220316183617.1470631-1-arnd@kernel.org/

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


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

end of thread, other threads:[~2022-03-17 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 18:36 [PATCH] iwlwifi: mei: fix building iwlmei Arnd Bergmann
2022-03-16 18:53 ` Kalle Valo
2022-03-16 18:55 ` Grumbach, Emmanuel
2022-03-17 11:06   ` Coelho, Luciano
2022-03-17 14:15 ` Kalle Valo

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.