From f67cf9aaae4681692dce78ce31ba08cdf9cc0705 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Sun, 19 Oct 2025 11:45:08 +0300 Subject: [PATCH] wifi: iwlwifi: fix build when mvm/mld not configured When neither mvm nor mld are configured, we don't have the iwl_bz_mac_cfg symbol and thus cannot check for it. But in that case the relevant device entries aren't and cannot be present, so just ifdef the test code for that. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202509170625.BAJBe7Bi-lkp@intel.com/ Signed-off-by: Johannes Berg Signed-off-by: Miri Korenblit Link: https://patch.msgid.link/20251019114304.615810979e7b.I9a215f955bb3208d99239be8496d19e0f186b4d0@changeid --- drivers/net/wireless/intel/iwlwifi/tests/devinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/tests/devinfo.c b/drivers/net/wireless/intel/iwlwifi/tests/devinfo.c index 3054bc0a9c679..6bf2ad18b0091 100644 --- a/drivers/net/wireless/intel/iwlwifi/tests/devinfo.c +++ b/drivers/net/wireless/intel/iwlwifi/tests/devinfo.c @@ -274,6 +274,7 @@ static void devinfo_pci_ids_config(struct kunit *test) if (s->device == PCI_ANY_ID || s->subdevice == PCI_ANY_ID) continue; +#if IS_ENABLED(CONFIG_IWLMVM) || IS_ENABLED(CONFIG_IWLMLD) /* * The check below only works for old (pre-CNVI) devices. Most * new have subdevice==ANY, so are already skipped, but for some @@ -281,6 +282,7 @@ static void devinfo_pci_ids_config(struct kunit *test) */ if (s->driver_data == (kernel_ulong_t)&iwl_bz_mac_cfg) continue; +#endif di = iwl_pci_find_dev_info(s->device, s->subdevice, 0, 0, 0, 0, true); -- 2.47.3