Messages in this thread Patch in this message | | | From | Ingo Molnar <> | Subject | [PATCH 11/35] sched/headers: Remove <linux/sched.h> from <linux/sched/user.h> | Date | Wed, 8 Feb 2017 19:51:03 +0100 |
| |
If we add <linux/uidgid.h> then <linux/sched/user.h> becomes a self-contained header and users of it either don't need <linux/sched.h> or have already included it.
This reduces the size of the header dependency graph.
Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> --- include/linux/sched/user.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h index c3824e6780e5..47600dd62ded 100644 --- a/include/linux/sched/user.h +++ b/include/linux/sched/user.h @@ -1,7 +1,8 @@ #ifndef _LINUX_SCHED_USER_H #define _LINUX_SCHED_USER_H -#include <linux/sched.h> +#include <linux/uidgid.h> +#include <linux/atomic.h> struct key; -- 2.7.4
| |