staging: rtl8723bs: fix unmet dependency on CRYPTO for CRYPTO_LIB_ARC4
authorJulian Braha <julianbraha@gmail.com>
Fri, 29 Oct 2021 21:42:44 +0000 (17:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Oct 2021 09:12:50 +0000 (11:12 +0200)
commit88c47bbf9a2f1dd30ac145ffa057ba72c6ddec1b
tree495e5f57d9c91abaf5d03839889fb42bbaf3bbbe
parentd8a364820e01b6abd9ae5dea1fc18f7f5b1a1450
staging: rtl8723bs: fix unmet dependency on CRYPTO for CRYPTO_LIB_ARC4

When RTL8723BS is selected, and CRYPTO is not selected,
Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for CRYPTO_LIB_ARC4
  Depends on [n]: CRYPTO [=n]
  Selected by [m]:
  - RTL8723BS [=m] && STAGING [=y] && WLAN [=y] && MMC [=y] && CFG80211 [=y] && m && MODULES [=y]
  - RTLLIB_CRYPTO_WEP [=m] && STAGING [=y] && RTLLIB [=m]

This is because RTL8723BS selects CRYPTO_LIB_ARC4
without selecting CRYPTO, despite CRYPTO_LIB_ARC4
depending on CRYPTO.

This unmet dependency bug was detected by Kismet,
a static analysis tool for Kconfig. Please advise
if this is not the appropriate solution.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Julian Braha <julianbraha@gmail.com>
Link: https://lore.kernel.org/r/20211029214244.17341-1-julianbraha@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/Kconfig