Skip to contentSkip to conversation

nvme: tcp: fix kconfig dependency warning when !CRYPTO

PATCH Applied Necip Fazil Yildiran 3 participants 3 messages Sep 14, 2020 – Sep 15, 2020 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme: tcp: fix kconfig dependency warning when !CRYPTO

When NVME_TCP is enabled and CRYPTO is disabled, it results in the following Kbuild warning:

WARNING: unmet direct dependencies detected for CRYPTO_CRC32C
Depends on [n]: CRYPTO [=n]
Selected by [y]:
- NVME_TCP [=y] && INET [=y] && BLK_DEV_NVME [=y]

The reason is that NVME_TCP selects CRYPTO_CRC32C without depending on or selecting CRYPTO while CRYPTO_CRC32C is subordinate to CRYPTO.

Honor the kconfig menu hierarchy to remove kconfig dependency warnings.

Fixes 79fd751d61aa ("nvme: tcp: selects CRYPTO_CRC32C for nvme-tcp")
---
 drivers/nvme/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/nvme/host/Kconfig +1 -0
index 3ed9786b88d8..a44d49d63968 100644
@@ -73,6 +73,7 @@ config NVME_TCP
 	depends on INET
 	depends on BLK_DEV_NVME
 	select NVME_FABRICS
+	select CRYPTO
 	select CRYPTO_CRC32C
 	help
 	  This provides support for the NVMe over Fabrics protocol using
Signature · 7 lines
2.25.1


_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme