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/autogroup.h>

The <linux/sched/autogroup.h> file is a largely self-contained header and users of
it either don't need <linux/sched.h> - or have already included it.

Add a 'task_struct' predeclaration to make it build standalone.

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>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

+1 -2
+1 -2
include/linux/sched/autogroup.h
··· 1 1 #ifndef _LINUX_SCHED_AUTOGROUP_H 2 2 #define _LINUX_SCHED_AUTOGROUP_H 3 3 4 - #include <linux/sched.h> 5 - 6 4 struct signal_struct; 5 + struct task_struct; 7 6 struct task_group; 8 7 struct seq_file; 9 8