[lkml]   [2022]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] init_task: Remove unneeded pid_namespace.h and utsname.h includes
Remove pid_namespace.h and utsname.h from init_task.h
They are not needed any more.

- added in commit 9a575a92db33 ("[PATCH] to nsproxy")
- needed because of 'init_pid_ns'

- 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 <>
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>
 \ /
  Last update: 2022-12-04 11:03    [W:0.182 / U:0.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site