sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
authorIngo Molnar <mingo@kernel.org>
Wed, 1 Feb 2017 15:36:40 +0000 (16:36 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:26 +0000 (08:42 +0100)
We are going to split <linux/sched/wake_q.h> out of <linux/sched.h>, which
will have to be picked up from other headers and a couple of .c files.

Create a trivial placeholder <linux/sched/wake_q.h> file that just
maps to <linux/sched.h> to make this patch obviously correct and
bisectable.

Include the new header in the files that are going to need it.

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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched/wake_q.h [new file with mode: 0644]
ipc/mqueue.c
ipc/msg.c
ipc/sem.c
kernel/futex.c
kernel/locking/mutex.c
kernel/locking/rtmutex.c
kernel/locking/rtmutex_common.h
kernel/locking/rwsem-xadd.c
kernel/sched/sched.h

diff --git a/include/linux/sched/wake_q.h b/include/linux/sched/wake_q.h
new file mode 100644 (file)
index 0000000..6383b35
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _LINUX_SCHED_WAKE_Q_H
+#define _LINUX_SCHED_WAKE_Q_H
+
+#include <linux/sched.h>
+
+#endif /* _LINUX_SCHED_WAKE_Q_H */
index 4fdd970314315a6cd29df52902a12759aff41869..40e448de8a7eb0370228e6418f08eb87a0366d56 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/ipc_namespace.h>
 #include <linux/user_namespace.h>
 #include <linux/slab.h>
+#include <linux/sched/wake_q.h>
 
 #include <net/sock.h>
 #include "util.h"
index e3e52ce01123c50365f8c7a2e2079489ff0dd7c9..ecc387e573f6d2b0065ec85e6b0c60a59e7ab7fc 100644 (file)
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -31,6 +31,7 @@
 #include <linux/list.h>
 #include <linux/security.h>
 #include <linux/sched.h>
+#include <linux/sched/wake_q.h>
 #include <linux/syscalls.h>
 #include <linux/audit.h>
 #include <linux/seq_file.h>
index e468cd1c12f0d6bb6d78fc583d4fb83e13a2c927..947dc2348271f9b8b373e098932c1e4e351806de 100644 (file)
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -82,6 +82,7 @@
 #include <linux/rwsem.h>
 #include <linux/nsproxy.h>
 #include <linux/ipc_namespace.h>
+#include <linux/sched/wake_q.h>
 
 #include <linux/uaccess.h>
 #include "util.h"
index b687cb22301ce0dab9307156651ef69172170982..8ddcf9ea953c982a3e77cf4e09cf4a57a73dbac0 100644 (file)
@@ -61,6 +61,7 @@
 #include <linux/nsproxy.h>
 #include <linux/ptrace.h>
 #include <linux/sched/rt.h>
+#include <linux/sched/wake_q.h>
 #include <linux/hugetlb.h>
 #include <linux/freezer.h>
 #include <linux/bootmem.h>
index ad2d9e22697b92125a643efd049bd2d3e7a54352..57f6311e24052f4401114284e611b1f8ebb35ca0 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/ww_mutex.h>
 #include <linux/sched.h>
 #include <linux/sched/rt.h>
+#include <linux/sched/wake_q.h>
 #include <linux/export.h>
 #include <linux/spinlock.h>
 #include <linux/interrupt.h>
index d340be3a488f7afa383c8d7467f786e5f241dcc7..d4f79849136192c00b1aa20833446602e05fed7f 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/sched.h>
 #include <linux/sched/rt.h>
 #include <linux/sched/deadline.h>
+#include <linux/sched/wake_q.h>
 #include <linux/timer.h>
 
 #include "rtmutex_common.h"
index 990134617b4c0248be351df4075ae6e29e85fb6a..856dfff5c33ab5a24fd0464032daf1bf8b81e351 100644 (file)
@@ -13,6 +13,7 @@
 #define __KERNEL_RTMUTEX_COMMON_H
 
 #include <linux/rtmutex.h>
+#include <linux/sched/wake_q.h>
 
 /*
  * This is the control structure for tasks blocked on a rt_mutex,
index 2ad8d8dc3bb19db644d0ee8f8301d61b71d0542d..4fe8d8ad439642fc6d0d75a32b4bc3692302d90b 100644 (file)
  * and Davidlohr Bueso <davidlohr@hp.com>. Based on mutexes.
  */
 #include <linux/rwsem.h>
-#include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/export.h>
+#include <linux/sched.h>
 #include <linux/sched/rt.h>
+#include <linux/sched/wake_q.h>
 #include <linux/osq_lock.h>
 
 #include "rwsem.h"
index 9b9cb260d9cf31b51a3959e5b663bff35e39a314..683570739f468e8bc7de33b88aab06e4a0c221e6 100644 (file)
@@ -3,6 +3,7 @@
 #include <linux/sched/sysctl.h>
 #include <linux/sched/topology.h>
 #include <linux/sched/rt.h>
+#include <linux/sched/wake_q.h>
 #include <linux/u64_stats_sync.h>
 #include <linux/sched/deadline.h>
 #include <linux/kernel_stat.h>