]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iwlwifi: fix build error for IWLMEI
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 27 Feb 2022 20:00:51 +0000 (12:00 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 2 Mar 2022 21:36:49 +0000 (22:36 +0100)
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")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Luca Coelho <luciano.coelho@intel.com>
Cc: linux-wireless@vger.kernel.org
Link: https://lore.kernel.org/r/20220227200051.7176-1-rdunlap@infradead.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/Makefile

index 1364b0014488685dfbdfd79b8f2e6a2139eb26c4..208e73a16051938607957e988d33c3149f21264d 100644 (file)
@@ -5,3 +5,4 @@ obj-$(CONFIG_IPW2200) += ipw2x00/
 obj-$(CONFIG_IWLEGACY) += iwlegacy/
 
 obj-$(CONFIG_IWLWIFI)  += iwlwifi/
+obj-$(CONFIG_IWLMEI)   += iwlwifi/