[Devel] [PATCH RH9 1/3] config/venet: make VE_NETDEV depend on VE

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Wed Oct 27 16:05:19 MSK 2021


In drivers/net/venetdev.c (which is config VE_NETDEV) we use
net->owner_ve (which is under config VE), so probably it's a good idea
to make VE_NETDEV depend from VE in Kconfig.

https://jira.sw.ru/browse/PSBM-135200
Fixes: 12b9b0869be8 ("drivers/net/ve: venet network device introduced")
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 kernel/Kconfig.openvz | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/Kconfig.openvz b/kernel/Kconfig.openvz
index 6ea4f707df61..fd52fea9954d 100644
--- a/kernel/Kconfig.openvz
+++ b/kernel/Kconfig.openvz
@@ -43,7 +43,7 @@ config VE_CALLS
 
 config VE_NETDEV
 	tristate "VE network device"
-	depends on NET
+	depends on VE && NET
 	select VZ_DEV
 	default m
 	help
-- 
2.31.1



More information about the Devel mailing list