[PATCH 19/53] sched/headers: Move the 'init_mm' declaration from to

Ingo Molnar
2017-02-08T18:53:08Z

include/linux/mm_types.h | 2 ++
include/linux/sched.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 5cbae16508d5..614d8c3a70db 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -527,6 +527,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
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 8f2ae1e11e73..0ba8596a4977 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1778,8 +1778,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;

/*
--
2.7.4