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)
commit875ad06015329314c594d3302ac2bbea37774543
treedc492b5defef65d345323420e5d014aefbdaca05
parent90f8f4c0e3cebd541deaa45cf0e470bb9810dd4f
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")
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