* [PATCH] cgroup:namespace: Remove unused cgroup_namespaces_init()
@ 2023-08-10 11:25 Lu Jialin
[not found] ` <20230810112528.838797-1-lujialin4-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Lu Jialin @ 2023-08-10 11:25 UTC (permalink / raw)
To: Zefan Li, Tejun Heo, Johannes Weiner, Aditya Kali, Serge Hallyn
Cc: Lu Jialin, cgroups-u79uwXL29TY76Z2rM5mHXA
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-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
---
kernel/cgroup/namespace.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/kernel/cgroup/namespace.c b/kernel/cgroup/namespace.c
index 0d5c29879a50..144a464e45c6 100644
--- a/kernel/cgroup/namespace.c
+++ b/kernel/cgroup/namespace.c
@@ -149,9 +149,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);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cgroup:namespace: Remove unused cgroup_namespaces_init()
[not found] ` <20230810112528.838797-1-lujialin4-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
@ 2023-08-15 0:30 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2023-08-15 0:30 UTC (permalink / raw)
To: Lu Jialin
Cc: Zefan Li, Johannes Weiner, Aditya Kali, Serge Hallyn,
cgroups-u79uwXL29TY76Z2rM5mHXA
On Thu, Aug 10, 2023 at 11:25:28AM +0000, Lu Jialin wrote:
> 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-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Applied to cgroup/for-6.6.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-15 0:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 11:25 [PATCH] cgroup:namespace: Remove unused cgroup_namespaces_init() Lu Jialin
[not found] ` <20230810112528.838797-1-lujialin4-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2023-08-15 0:30 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).