sched/headers: Remove <linux/sched.h> from <linux/sched/autogroup.h>
authorIngo Molnar <mingo@kernel.org>
Wed, 8 Feb 2017 17:51:54 +0000 (18:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Mar 2017 00:45:29 +0000 (01:45 +0100)
commit5fd73157bdfb57370b69be7c0067f08e610e7daa
treed926080db66128f196748e199fb33d210598a3ae
parent5a2d6880f461faa416c0d329d46a128cf342c1eb
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>
include/linux/sched/autogroup.h