Skip to contentSkip to conversation

net: iwlwifi: fix build error for IWLMEI

PATCH New Randy Dunlap 1 participant 1 message Feb 27, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: iwlwifi: fix build error for IWLMEI

When CONFIG_IWLWIFI=m and CONFIG_IWLMEI=y, the kernel build system must be told to build the iwlwifi/ subdirectory for both IWLWIFI and IWLMEI so that builds for both =y and =m are done.

This resolves an undefined reference build error:

ERROR: modpost: "iwl_mei_is_connected" [drivers/net/wireless/intel/iwlwifi/iwlwifi.ko] undefined!

Fixes 977df8bd5844 ("wlwifi: work around reverse dependency on MEI")
Cc Arnd Bergmann <[email protected]>
Cc Luca Coelho <[email protected]>
---
 drivers/net/wireless/intel/Makefile |    1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/Makefile +1 -0
@@ -5,3 +5,4 @@ obj-$(CONFIG_IPW2200) += ipw2x00/
 obj-$(CONFIG_IWLEGACY)	+= iwlegacy/
 
 obj-$(CONFIG_IWLWIFI)	+= iwlwifi/
+obj-$(CONFIG_IWLMEI)	+= iwlwifi/