Kalle Valo <kvalo@xxxxxxxxxxxxxx> writes: > Randy reported an error on his randconfig builds: > > ERROR: modpost: "iwl_so_trans_cfg" [drivers/net/wireless/intel/iwlwifi/iwlwifi.ko] undefined! > > The problem was that when CONFIG_IWLMVM was disabled we were still accessing > iwl_so_trans_cfg. Fix it by moving IS_ENABLED() check before the access. > > Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> > Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxx> Fixes: 930be4e76f26 ("iwlwifi: add support for SnJ with Jf devices") -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches