
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/ICAOAT -------------------------------- Export cgroup_init_cftypes as internal interface for upcomming cgroup ifs framework. Signed-off-by: Pu Lehui <pulehui@huawei.com> --- kernel/cgroup/cgroup-internal.h | 1 + kernel/cgroup/cgroup.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/cgroup/cgroup-internal.h b/kernel/cgroup/cgroup-internal.h index f5fb12890645..831449ec81e5 100644 --- a/kernel/cgroup/cgroup-internal.h +++ b/kernel/cgroup/cgroup-internal.h @@ -297,5 +297,6 @@ void cgroup1_check_for_release(struct cgroup *cgrp); int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param); int cgroup1_get_tree(struct fs_context *fc); int cgroup1_reconfigure(struct fs_context *ctx); +int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts); #endif /* __CGROUP_INTERNAL_H */ diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index b4b760fd7790..5969d44194f6 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -4414,7 +4414,7 @@ static void cgroup_exit_cftypes(struct cftype *cfts) } } -static int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) +int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) { struct cftype *cft; int ret = 0; -- 2.34.1