Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/headers, sched/headers: Prepare to split <linux/mm_types_task.h> out of <linux/mm_types.h>

We are going to separate all the MM types that are embedded directly in 'struct task_struct'
into the new <linux/mm_types_task.h> header.

Create a new <linux/mm_types_task.h> that only contains some includes from mm_types.h itself.

This should be trivially correct and easy to bisect to.

(This patch does not materially move the types yet.)

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>

+13 -3
+3 -3
include/linux/mm_types.h
··· 1 1 #ifndef _LINUX_MM_TYPES_H 2 2 #define _LINUX_MM_TYPES_H 3 3 4 + #include <linux/mm_types_task.h> 5 + 4 6 #include <linux/auxvec.h> 5 - #include <linux/types.h> 6 - #include <linux/threads.h> 7 7 #include <linux/list.h> 8 8 #include <linux/spinlock.h> 9 9 #include <linux/rbtree.h> ··· 13 13 #include <linux/uprobes.h> 14 14 #include <linux/page-flags-layout.h> 15 15 #include <linux/workqueue.h> 16 - #include <asm/page.h> 16 + 17 17 #include <asm/mmu.h> 18 18 19 19 #ifndef AT_VECTOR_SIZE_ARCH
+10
include/linux/mm_types_task.h
··· 1 + #ifndef _LINUX_MM_TYPES_TASK_H 2 + #define _LINUX_MM_TYPES_TASK_H 3 + 4 + #include <linux/types.h> 5 + #include <linux/threads.h> 6 + #include <linux/atomic.h> 7 + 8 + #include <asm/page.h> 9 + 10 + #endif /* _LINUX_MM_TYPES_TASK_H */