Messages in this thread Patch in this message |  | | From | Christophe JAILLET <> | Subject | [PATCH] cred: Include <linux/securebits.h> in the right file | Date | Sat, 3 Dec 2022 21:50:41 +0100 |
| |
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(-)
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> -- 2.34.1
|  |