]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b1690cdc0cc213d24d6fa0827871ad70cb21979
treedc492b5defef65d345323420e5d014aefbdaca05
parent3f2c045022e8451c48a8fd0372747550f9cbc91f
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: 6c95d5f84f34 ("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