sched/headers: Prepare to remove the <linux/gfp.h> include from <linux/sched.h>
authorIngo Molnar <mingo@kernel.org>
Thu, 2 Feb 2017 19:56:33 +0000 (20:56 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:34 +0000 (08:42 +0100)
<linux/topology.h> is still needed - also update other headers
and .c files that depend on sched.h including gfp.h (and its
sub-headers) for them.

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.h
include/linux/sched/mm.h
lib/percpu_ida.c

index e87c97e1a94778d7be38303a3f0d9c576bfac6dd..8ae7b3d85658c7abea4bfa7fa1bbb7e90e421e5b 100644 (file)
@@ -56,6 +56,7 @@ struct sched_param {
 #include <linux/llist.h>
 #include <linux/uidgid.h>
 #include <linux/gfp.h>
+#include <linux/topology.h>
 #include <linux/magic.h>
 #include <linux/cgroup-defs.h>
 
index a7adba1cd0a9b27e034aa29ddf3e8c346c06d1a7..1cf7941bb9464c7cb677a4ea4f1fcf38b2729f2d 100644 (file)
@@ -2,5 +2,6 @@
 #define _LINUX_SCHED_MM_H
 
 #include <linux/sched.h>
+#include <linux/gfp.h>
 
 #endif /* _LINUX_SCHED_MM_H */
index 010410990bc691d62ce617d927a6ed3ceeb66270..6016f1deb1f5f7daf110fe0ca9938c1980e52260 100644 (file)
@@ -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>