[PATCH 43/89] sched/headers: Remove <linux/gfp.h> include from <linux/sched.h>
From: Ingo Molnar
Date: Mon Feb 06 2017 - 08:30:56 EST
<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@xxxxxxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
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