[Devel] [PATCH 3/7] cgroup: Declared cgroup_mark_ve_root in public header
Valeriy Vdovin
valeriy.vdovin at virtuozzo.com
Wed Apr 1 18:41:24 MSK 2020
Signed-off-by: Valeriy Vdovin <valeriy.vdovin at virtuozzo.com>
---
include/linux/cgroup.h | 4 ++++
kernel/ve/ve.c | 2 --
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 36c7b8f8..b0b8b9e 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -637,6 +637,10 @@ int cgroup_path_ve(const struct cgroup *cgrp, char *buf, int buflen);
int cgroup_task_count(const struct cgroup *cgrp);
+#ifdef CONFIG_VE
+void cgroup_mark_ve_root(struct ve_struct *ve);
+#endif
+
/*
* Control Group taskset, used to pass around set of tasks to cgroup_subsys
* methods.
diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index d4d64ba..587f445 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -482,8 +482,6 @@ static void ve_drop_context(struct ve_struct *ve)
static const struct timespec zero_time = { };
-extern void cgroup_mark_ve_root(struct ve_struct *ve);
-
static int ve_workqueue_start(struct ve_struct *ve)
{
ve->wq = alloc_workqueue("ve_wq_%s",
--
1.8.3.1
More information about the Devel
mailing list