[Devel] [VZ10 13/21] ve: Fix compiler warning about CONFIG_VE usage
Vladimir Riabchun
vladimir.riabchun at virtuozzo.com
Thu May 7 22:10:25 MSK 2026
kernel/capability.c:388:5: warning: "CONFIG_VE" is not defined,
evaluates to 0
https://virtuozzo.atlassian.net/browse/VSTOR-130116
Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
---
kernel/capability.c | 2 +-
net/ipv6/ip6_tunnel.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/capability.c b/kernel/capability.c
index 9615498e637d..e507c62d8660 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -385,7 +385,7 @@ bool ns_capable(struct user_namespace *ns, int cap)
}
EXPORT_SYMBOL(ns_capable);
-#if CONFIG_VE
+#ifdef CONFIG_VE
bool ve_capable(int cap)
{
struct cred *cred;
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index aad799d9c804..7ffc1b965986 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -123,7 +123,7 @@ ip6_tnl_lookup(struct net *net, int link,
struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
struct in6_addr any;
-#if CONFIG_VE
+#ifdef CONFIG_VE
if (!ip6n) /* no VE_FEATURE_IPIP */
return NULL;
#endif
--
2.43.0
More information about the Devel
mailing list