From: Ingo Molnar <mingo@kernel.org>
Date: Sun, 5 Feb 2017 15:03:58 +0000 (+0100)
Subject: sched/headers: Remove <linux/magic.h> from <linux/sched/task_stack.h>
X-Git-Tag: v4.11-rc1~18^2~6
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=50ff9d130014f7b19541dbf607a615a72b75b778;p=users%2Fdwmw2%2Flinux.git

sched/headers: Remove <linux/magic.h> from <linux/sched/task_stack.h>

It's not used by any of the scheduler methods, but <linux/sched/task_stack.h>
needs it to pick up STACK_END_MAGIC.

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

diff --git a/include/linux/sched.h b/include/linux/sched.h
index bd0111a06aa25..559be4f1aee55 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -22,7 +22,6 @@
 #include <linux/task_io_accounting.h>
 #include <linux/latencytop.h>
 #include <linux/topology.h>
-#include <linux/magic.h>
 
 #include <asm/current.h>
 
diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c
index abc585858685c..56eba9caa632a 100644
--- a/kernel/cgroup/cgroup-v1.c
+++ b/kernel/cgroup/cgroup-v1.c
@@ -7,6 +7,7 @@
 #include <linux/mm.h>
 #include <linux/sched/signal.h>
 #include <linux/sched/task.h>
+#include <linux/magic.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include <linux/delayacct.h>