cred: Include <linux/securebits.h> in the right file

Message ID 1a3d5bd51b7807471a913f8fa621e5a4ecd08e6a.1670100520.git.christophe.jaillet@wanadoo.fr
State New
Headers
Series cred: Include <linux/securebits.h> in the right file |

Commit Message

Christophe JAILLET Dec. 3, 2022, 8:50 p.m. UTC
  There is no need to include <linux/securebits.h> in init_task.h.
Move it to the right place, in kernel/cred.c which uses SECUREBITS_DEFAULT.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Let see if build-bots agree with me!
---
 include/linux/init_task.h | 1 -
 kernel/cred.c             | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 40fc5813cf93..079c190de56d 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -10,7 +10,6 @@ 
 #include <linux/ipc.h>
 #include <linux/pid_namespace.h>
 #include <linux/user_namespace.h>
-#include <linux/securebits.h>
 #include <linux/seqlock.h>
 #include <linux/rbtree.h>
 #include <linux/refcount.h>
diff --git a/kernel/cred.c b/kernel/cred.c
index 811ad654abd1..cfe8ad309b92 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -12,6 +12,7 @@ 
 #include <linux/key.h>
 #include <linux/keyctl.h>
 #include <linux/init_task.h>
+#include <linux/securebits.h>
 #include <linux/security.h>
 #include <linux/binfmts.h>
 #include <linux/cn_proc.h>