* [PATCH] iwlwifi: fix link error without CONFIG_IWLMVM
@ 2021-02-25 14:30 Arnd Bergmann
2021-02-25 18:21 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2021-02-25 14:30 UTC (permalink / raw)
To: Luca Coelho, Kalle Valo, David S. Miller, Jakub Kicinski
Cc: Arnd Bergmann, Ihab Zhaika, Matti Gottlieb, Johannes Berg,
linux-wireless, netdev, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
A runtime check that was introduced recently failed to
check for the matching Kconfig symbol:
ld.lld: error: undefined symbol: iwl_so_trans_cfg
>>> referenced by drv.c
>>> net/wireless/intel/iwlwifi/pcie/drv.o:(iwl_pci_probe)
Fixes: 930be4e76f26 ("iwlwifi: add support for SnJ with Jf devices")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
index 314fec4a89ad..a2f5c4fc2324 100644
--- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
@@ -1113,7 +1113,8 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
* here. But if we detect that the MAC type is actually SnJ,
* we should switch to it here to avoid problems later.
*/
- if (CSR_HW_REV_TYPE(iwl_trans->hw_rev) == IWL_CFG_MAC_TYPE_SNJ)
+ if (IS_ENABLED(CONFIG_IWLMVM) &&
+ CSR_HW_REV_TYPE(iwl_trans->hw_rev) == IWL_CFG_MAC_TYPE_SNJ)
iwl_trans->trans_cfg = &iwl_so_trans_cfg;
#if IS_ENABLED(CONFIG_IWLMVM)
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iwlwifi: fix link error without CONFIG_IWLMVM
2021-02-25 14:30 [PATCH] iwlwifi: fix link error without CONFIG_IWLMVM Arnd Bergmann
@ 2021-02-25 18:21 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-02-25 18:21 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Luca Coelho, David S. Miller, Jakub Kicinski, Arnd Bergmann,
Ihab Zhaika, Matti Gottlieb, Johannes Berg, linux-wireless,
netdev, linux-kernel
Arnd Bergmann <arnd@kernel.org> writes:
> From: Arnd Bergmann <arnd@arndb.de>
>
> A runtime check that was introduced recently failed to
> check for the matching Kconfig symbol:
>
> ld.lld: error: undefined symbol: iwl_so_trans_cfg
>>>> referenced by drv.c
>>>> net/wireless/intel/iwlwifi/pcie/drv.o:(iwl_pci_probe)
>
> Fixes: 930be4e76f26 ("iwlwifi: add support for SnJ with Jf devices")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
A sent a similar patch this morning:
https://patchwork.kernel.org/project/linux-wireless/patch/1614236661-20274-1-git-send-email-kvalo@codeaurora.org/
But I forgot to include an Fixes tag, I'll add that to my patch during commit.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-25 18:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-25 14:30 [PATCH] iwlwifi: fix link error without CONFIG_IWLMVM Arnd Bergmann
2021-02-25 18:21 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).