From e8da2c8c483c7ef75c764479ee0e26f59493ea46 Mon Sep 17 00:00:00 2001 From: Jianan Huang Date: Tue, 14 May 2024 10:31:47 +0800 Subject: [PATCH] ANDROID: Export cgroup function to allow module to remove control files Export cgroup_rm_cftypes to allow module to remove cgroup control files when exit, otherwise undefined behavior may occur. Bug: 340297716 Change-Id: Ieda8a8ab155aeb71e0f20fdfb5068ac24465061f Signed-off-by: Jianan Huang (cherry picked from commit 800f7297b5d0b17f00ad09e345513c4ba30d77d2) --- kernel/cgroup/cgroup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index c5e11007504b..527b489a4dc2 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -4467,6 +4467,7 @@ int cgroup_rm_cftypes(struct cftype *cfts) cgroup_unlock(); return 0; } +EXPORT_SYMBOL_GPL(cgroup_rm_cftypes); /** * cgroup_add_cftypes - add an array of cftypes to a subsystem