init_task: Remove unneeded pid_namespace.h and utsname.h includes

Message ID 94c8f2123a8833b61d84a662ec35f9c070cdf4dd.1670147823.git.christophe.jaillet@wanadoo.fr
State New
Headers
Series init_task: Remove unneeded pid_namespace.h and utsname.h includes |

Commit Message

Christophe JAILLET Dec. 4, 2022, 10:02 a.m. UTC
  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@wanadoo.fr>
---
Let see if build-bots agree with me!
---
 include/linux/init_task.h | 2 --
 1 file changed, 2 deletions(-)
  

Patch

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>