[PATCH] init_task: Remove unneeded pid_namespace.h and utsname.h includes
From: Christophe JAILLET
Date: Sun Dec 04 2022 - 05:08:20 EST
Remove pid_namespace.h and utsname.h from init_task.h
They are not needed any more.
<linux/pid_namespace.h>
- added in commit 9a575a92db33 ("[PATCH] to nsproxy")
- needed because of 'init_pid_ns'
<linux/utsname.h>
- added in commit 4865ecf1315b ("[PATCH] namespaces: utsname: implement
utsname namespaces")
- needed because of 'init_uts_ns'
Both use have been moved in "kernel/nsproxy.c" in commit 8467005da3ef
("nsproxy: remove INIT_NSPROXY()").
"kernel/nsproxy.c" already includes the 2 corresponding includes.
Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
---
Let see if build-bots agree with me!
---
include/linux/init_task.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 079c190de56d..6d2c4ea4c97a 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -4,11 +4,9 @@
#include <linux/rcupdate.h>
#include <linux/irqflags.h>
-#include <linux/utsname.h>
#include <linux/lockdep.h>
#include <linux/ftrace.h>
#include <linux/ipc.h>
-#include <linux/pid_namespace.h>
#include <linux/user_namespace.h>
#include <linux/seqlock.h>
#include <linux/rbtree.h>
--
2.34.1