aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2017-02-08 18:51:54 +0100
committerIngo Molnar <[email protected]>2017-03-03 01:45:29 +0100
commit5fd73157bdfb57370b69be7c0067f08e610e7daa (patch)
treed926080db66128f196748e199fb33d210598a3ae
parent5a2d6880f461faa416c0d329d46a128cf342c1eb (diff)
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 <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--include/linux/sched/autogroup.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sched/autogroup.h b/include/linux/sched/autogroup.h
index fd6855548d0c..55cd496df884 100644
--- a/include/linux/sched/autogroup.h
+++ b/include/linux/sched/autogroup.h
@@ -1,9 +1,8 @@
#ifndef _LINUX_SCHED_AUTOGROUP_H
#define _LINUX_SCHED_AUTOGROUP_H
-#include <linux/sched.h>
-
struct signal_struct;
+struct task_struct;
struct task_group;
struct seq_file;