Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/headers: Remove <linux/sched.h> from <linux/sched/user.h>

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.

Acked-by: 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>

+2 -1
+2 -1
include/linux/sched/user.h
··· 1 1 #ifndef _LINUX_SCHED_USER_H 2 2 #define _LINUX_SCHED_USER_H 3 3 4 - #include <linux/sched.h> 4 + #include <linux/uidgid.h> 5 + #include <linux/atomic.h> 5 6 6 7 struct key; 7 8