summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/sched.h3
-rw-r--r--include/linux/sched/task.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 3eb284741790..4ab105a2a8f9 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1469,9 +1469,6 @@ static inline int kstack_end(void *addr)
}
#endif
-extern union thread_union init_thread_union;
-extern struct task_struct init_task;
-
extern struct pid_namespace init_pid_ns;
/*
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index 20ed9108f261..1be049a18d1b 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -8,6 +8,9 @@
#include <linux/sched.h>
+struct task_struct;
+union thread_union;
+
/*
* This serializes "schedule()" and also protects
* the run-queue from deletions/modifications (but
@@ -17,6 +20,9 @@
extern rwlock_t tasklist_lock;
extern spinlock_t mmlist_lock;
+extern union thread_union init_thread_union;
+extern struct task_struct init_task;
+
#ifdef CONFIG_PROVE_RCU
extern int lockdep_tasklist_lock_is_held(void);
#endif /* #ifdef CONFIG_PROVE_RCU */