Skip to contentSkip to conversation

vhost: make CONFIG_VHOST depend on CONFIG_EVENTFD

PATCH In review Jason Wang 2 participants 2 messages Mar 31, 2020

Subsystems (5)
lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 vhost: make CONFIG_VHOST depend on CONFIG_EVENTFD

After commit ec9d8449a99b ("vhost: refine vhost and vringh kconfig"), CONFIG_VHOST could be enabled independently. This means we need make CONFIG_VHOST depend on CONFIG_EVENTFD, otherwise we break compiling without CONFIG_EVENTFD.

Fixes ec9d8449a99b ("vhost: refine vhost and vringh kconfig")
---
 drivers/vhost/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/vhost/Kconfig +4 -4
index 2a4efe39d79b..2be84b949e11 100644
@@ -13,6 +13,7 @@ config VHOST_RING
 
 menuconfig VHOST
 	tristate "Host kernel accelerator for virtio (VHOST)"
+	depends on EVENTFD
 	select VHOST_IOTLB
 	help
 	  This option is selected by any driver which needs to access
@@ -22,7 +23,7 @@ if VHOST
 
 config VHOST_NET
 	tristate "Host kernel accelerator for virtio net"
-	depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
+	depends on NET && (TUN || !TUN) && (TAP || !TAP)
 	---help---
 	  This kernel module can be loaded in host kernel to accelerate
 	  guest networking with virtio_net. Not to be confused with virtio_net
@@ -33,7 +34,7 @@ config VHOST_NET
 
 config VHOST_SCSI
 	tristate "VHOST_SCSI TCM fabric driver"
-	depends on TARGET_CORE && EVENTFD
+	depends on TARGET_CORE
 	default n
 	---help---
 	Say M here to enable the vhost_scsi TCM fabric module
@@ -41,7 +42,7 @@ config VHOST_SCSI
 
 config VHOST_VSOCK
 	tristate "vhost virtio-vsock driver"
-	depends on VSOCKETS && EVENTFD
+	depends on VSOCKETS
 	select VIRTIO_VSOCKETS_COMMON
 	default n
 	---help---
@@ -54,7 +55,6 @@ config VHOST_VSOCK
 
 config VHOST_VDPA
 	tristate "Vhost driver for vDPA-based backend"
-	depends on EVENTFD
 	select VDPA
 	help
 	  This kernel module can be loaded in host kernel to accelerate
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Jason Wang

After commit ec9d8449a99b ("vhost: refine vhost and vringh kconfig"), CONFIG_VHOST could be enabled independently. This means we need make CONFIG_VHOST depend on CONFIG_EVENTFD, otherwise we break compiling without CONFIG_EVENTFD.

Fixes ec9d8449a99b ("vhost: refine vhost and vringh kconfig")
---
 drivers/vhost/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

thanks.

Signature · 1 line
~Randy