summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLu Jialin <lujialin4@huawei.com>2023-08-10 11:25:28 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-23 10:48:08 +0200
commit2f570db43dc8ca487d4b5a46cd7af6652c9c10a6 (patch)
tree5ceee96a078bd1bcbd4c7001db1cc24a2aff800e
parente867103d9f9a1fc7052d774f77f4b1a5a9d41f99 (diff)
downloadlinux-stable-2f570db43dc8ca487d4b5a46cd7af6652c9c10a6.tar.gz
linux-stable-2f570db43dc8ca487d4b5a46cd7af6652c9c10a6.tar.bz2
linux-stable-2f570db43dc8ca487d4b5a46cd7af6652c9c10a6.zip
cgroup:namespace: Remove unused cgroup_namespaces_init()
[ Upstream commit 82b90b6c5b38e457c7081d50dff11ecbafc1e61a ] cgroup_namspace_init() just return 0. Therefore, there is no need to call it during start_kernel. Just remove it. Fixes: a79a908fd2b0 ("cgroup: introduce cgroup namespaces") Signed-off-by: Lu Jialin <lujialin4@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--kernel/cgroup/namespace.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/cgroup/namespace.c b/kernel/cgroup/namespace.c
index b05f1dd58a62..313e66b8c662 100644
--- a/kernel/cgroup/namespace.c
+++ b/kernel/cgroup/namespace.c
@@ -148,9 +148,3 @@ const struct proc_ns_operations cgroupns_operations = {
.install = cgroupns_install,
.owner = cgroupns_owner,
};
-
-static __init int cgroup_namespaces_init(void)
-{
- return 0;
-}
-subsys_initcall(cgroup_namespaces_init);