]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cgroup:namespace: Remove unused cgroup_namespaces_init()
authorLu Jialin <lujialin4@huawei.com>
Thu, 10 Aug 2023 11:25:28 +0000 (11:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 08:46:58 +0000 (10:46 +0200)
[ 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>
kernel/cgroup/namespace.c

index b05f1dd58a6220c5c4231465bee3f461078f171e..313e66b8c6622d47808b4906aa959cd20be32875 100644 (file)
@@ -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);