ve_cgrp_id is not defined when !CONFIG_VE.

https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <[email protected]>
---
 kernel/cgroup/cgroup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 0a76aa056c0f..5338dfab27bd 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -6438,6 +6438,7 @@ static struct cgroup *cgroup_create(struct cgroup 
*parent, const char *name,
         */
        if (!cgroup_on_dfl(cgrp))
                cgrp->subtree_control = cgroup_control(cgrp);
+#ifdef CONFIG_VE
        else
                /*
                 * Hide ve controller by default. Note that ve0 cgroup files
@@ -6445,6 +6446,7 @@ static struct cgroup *cgroup_create(struct cgroup 
*parent, const char *name,
                 * not created through cgroup_create().
                 */
                cgrp->hidden_ss_mask = 1 << ve_cgrp_id;
+#endif /* CONFIG_VE */
 
        cgroup_propagate_control(cgrp);
 
-- 
2.47.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to