sched/headers: Move the 'init_mm' declaration from <linux/sched.h> to <linux/mm_types.h>
authorIngo Molnar <mingo@kernel.org>
Thu, 2 Feb 2017 11:27:56 +0000 (12:27 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Mar 2017 00:43:39 +0000 (01:43 +0100)
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/mm_types.h
include/linux/sched.h

index 6daaf0a519683a64e44e5abf3ee073dd647529c9..28bc710d3467a404b42361a967d11381a11cda87 100644 (file)
@@ -546,6 +546,8 @@ struct mm_struct {
        struct work_struct async_put_work;
 };
 
+extern struct mm_struct init_mm;
+
 static inline void mm_init_cpumask(struct mm_struct *mm)
 {
 #ifdef CONFIG_CPUMASK_OFFSTACK
index 1ddb82be6b5024307ea6b4cc9035830373dd8091..253d8ab6256c7604e01e64cd81e3c87f05445e21 100644 (file)
@@ -1782,8 +1782,6 @@ static inline int kstack_end(void *addr)
 extern union thread_union init_thread_union;
 extern struct task_struct init_task;
 
-extern struct   mm_struct init_mm;
-
 extern struct pid_namespace init_pid_ns;
 
 /*