[PATCH 43/89] sched/headers: Remove include from

Ingo Molnar
2017-02-06T13:30:52Z

<linux/topology.h> is still needed - but we at least don't have MM
headers in sched.h anymore, except <linux/mm_types.h>.

Fix dependencies in files that depended on this include.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
include/linux/sched.h | 2 +-
include/linux/sched/mm.h | 1 +
lib/percpu_ida.c | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 210f0f4a5841..7324624a49d6 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -20,7 +20,7 @@
#include <linux/kcov.h>
#include <linux/task_io_accounting.h>
#include <linux/latencytop.h>
-#include <linux/gfp.h>
+#include <linux/topology.h>
#include <linux/magic.h>

struct sched_attr;
diff --git a/include/linux/sched/mm.h b/include/linux/sched/mm.h
index 6dc0d34d773b..acbd122bb1ab 100644
--- a/include/linux/sched/mm.h
+++ b/include/linux/sched/mm.h
@@ -4,6 +4,7 @@
#include <linux/kernel.h>
#include <linux/atomic.h>
#include <linux/sched.h>
+#include <linux/gfp.h>

/*
* Routines for handling mm_structs
diff --git a/lib/percpu_ida.c b/lib/percpu_ida.c
index 010410990bc6..6016f1deb1f5 100644
--- a/lib/percpu_ida.c
+++ b/lib/percpu_ida.c
@@ -14,6 +14,7 @@
* General Public License for more details.
*/

+#include <linux/mm.h>
#include <linux/bitmap.h>
#include <linux/bitops.h>
#include <linux/bug.h>
--
2.7.4