Skip to contentSkip to conversation

nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME

PATCH In review Sagi Grimberg 5 participants 6 messages May 21, 2021 – May 26, 2021 NVMe

lore
Share & tools
lore

Sagi Grimberg

author maintainer
#0 lore raw

PATCH 1/1 nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME

We need to select NVME_CORE.

---
 drivers/nvme/host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/Kconfig +1 -1
index a44d49d63968..c0826b3c617c 100644
@@ -71,7 +71,7 @@ config NVME_FC
 config NVME_TCP
 	tristate "NVM Express over Fabrics TCP host driver"
 	depends on INET
-	depends on BLK_DEV_NVME
+	select NVME_CORE
 	select NVME_FABRICS
 	select CRYPTO
 	select CRYPTO_CRC32C
Signature · 7 lines
2.27.0


_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Reviewed-by on v1 1/1
#2 lore raw
In reply to Sagi Grimberg
Quoted 12 lines · Sagi Grimberg

We need to select NVME_CORE.

---
  drivers/nvme/host/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/Kconfig +0 -0
index a44d49d63968..c0826b3c617c 100644

drivers/nvme/host/Kconfig config NVME_FC · line 77

Quoted 8 lines
drivers/nvme/host/Kconfig +1 -1
@@ -71,7 +71,7 @@ config NVME_FC
  config NVME_TCP
  	tristate "NVM Express over Fabrics TCP host driver"
  	depends on INET
-	depends on BLK_DEV_NVME
+	select NVME_CORE
  	select NVME_FABRICS
  	select CRYPTO
  	select CRYPTO_CRC32C

Looks good,

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

maintainer
#3 lore raw
In reply to Sagi Grimberg
Quoted 1 line · Sagi Grimberg

We need to select NVME_CORE.

This looks fine and matches what the other drivers are doing, but I think a more appropriate dependency should have NVME_FABRICS select NVME_CORE.

Quoted 21 lines
---
 drivers/nvme/host/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/Kconfig +1 -1
index a44d49d63968..c0826b3c617c 100644
@@ -71,7 +71,7 @@ config NVME_FC
 config NVME_TCP
 	tristate "NVM Express over Fabrics TCP host driver"
 	depends on INET
-	depends on BLK_DEV_NVME
+	select NVME_CORE
 	select NVME_FABRICS
 	select CRYPTO
 	select CRYPTO_CRC32C
Signature · 1 line
2.27.0

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