sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
authorIngo Molnar <mingo@kernel.org>
Wed, 8 Feb 2017 17:51:35 +0000 (18:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:34 +0000 (08:42 +0100)
We are going to split <linux/sched/stat.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/stat.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>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
15 files changed:
arch/powerpc/kvm/book3s_hv.c
arch/s390/appldata/appldata_os.c
crypto/mcryptd.c
drivers/cpuidle/governors/menu.c
fs/proc/loadavg.c
fs/proc/root.c
fs/proc/stat.c
include/linux/sched/stat.h [new file with mode: 0644]
kernel/debug/kdb/kdb_main.c
kernel/exit.c
kernel/fork.c
kernel/sched/sched.h
kernel/sys.c
kernel/time/tick-sched.c
virt/kvm/kvm_main.c

index fc56a9ce785d6ee814e7a1859162ecb93c154d36..1ec86d9e2a82a32b28cd175951048b3d2cef118e 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/slab.h>
 #include <linux/preempt.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/stat.h>
 #include <linux/delay.h>
 #include <linux/export.h>
 #include <linux/fs.h>
index 079446619f89039a16876cbec73a725101d43ad4..45b3178200abc184ef790458d7d9c44d717379df 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/netdevice.h>
 #include <linux/sched.h>
 #include <linux/sched/loadavg.h>
+#include <linux/sched/stat.h>
 #include <asm/appldata.h>
 #include <asm/smp.h>
 
index c207458d62993350d9a0cfca5e1deca573b09c8c..4e64726588524f137acd590809bef11673695ed2 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/module.h>
 #include <linux/scatterlist.h>
 #include <linux/sched.h>
+#include <linux/sched/stat.h>
 #include <linux/slab.h>
 #include <linux/hardirq.h>
 
index fe86060e48f75ed79da437c40a8913f082e8854d..6d8a4026a9036a2548a0883f6443b9354fb076ad 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/tick.h>
 #include <linux/sched.h>
 #include <linux/sched/loadavg.h>
+#include <linux/sched/stat.h>
 #include <linux/math64.h>
 #include <linux/cpu.h>
 
index add5255ce7e027e1a7134063b119c52c3755086c..983fce5c24183dc658115371cc19e3d25fec411f 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/proc_fs.h>
 #include <linux/sched.h>
 #include <linux/sched/loadavg.h>
+#include <linux/sched/stat.h>
 #include <linux/seq_file.h>
 #include <linux/seqlock.h>
 #include <linux/time.h>
index 5d5fed20bfffe1f2a242eb7c49baeb3afdb4da82..a50ba388255f9cf06249b4f89ef47367af80a7fe 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/stat.h>
 #include <linux/init.h>
 #include <linux/sched.h>
+#include <linux/sched/stat.h>
 #include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/user_namespace.h>
index e47c3e8c4dfed5c88b4afd41de2a9be05cd7f92d..b95556e036bb546f0f7893bf6014220900fadf8d 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/kernel_stat.h>
 #include <linux/proc_fs.h>
 #include <linux/sched.h>
+#include <linux/sched/stat.h>
 #include <linux/seq_file.h>
 #include <linux/slab.h>
 #include <linux/time.h>
diff --git a/include/linux/sched/stat.h b/include/linux/sched/stat.h
new file mode 100644 (file)
index 0000000..30fe012
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _LINUX_SCHED_STAT_H
+#define _LINUX_SCHED_STAT_H
+
+#include <linux/sched.h>
+
+#endif /* _LINUX_SCHED_STAT_H */
index 308937c7a687725b05e02bc4b6c885536bd32b51..bf48a492b4beb11ef203f26f9ec2da594dc9d8ea 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/reboot.h>
 #include <linux/sched.h>
 #include <linux/sched/loadavg.h>
+#include <linux/sched/stat.h>
 #include <linux/sysrq.h>
 #include <linux/smp.h>
 #include <linux/utsname.h>
index 48649ccbb649d3d0b5391eae760047e2f2a83db3..5bad7dce1b7b3f0644d411f355c3e11ab3e781da 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/slab.h>
 #include <linux/sched/autogroup.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/stat.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/capability.h>
index 8fbe8bcd1e200a43bdba7a151bd38618de2c57d8..8632905f64c5fcd93331d5a6972dbd81cc93cdc6 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/sched/coredump.h>
 #include <linux/sched/user.h>
 #include <linux/sched/numa_balancing.h>
+#include <linux/sched/stat.h>
 #include <linux/rtmutex.h>
 #include <linux/init.h>
 #include <linux/unistd.h>
index 04f376cf7ba99315281317b63507144a7a3fee66..6c8a1db44dded48c939cae98eb284320512d5353 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/sched/numa_balancing.h>
 #include <linux/sched/mm.h>
 #include <linux/sched/cpufreq.h>
+#include <linux/sched/stat.h>
 #include <linux/u64_stats_sync.h>
 #include <linux/sched/deadline.h>
 #include <linux/kernel_stat.h>
index e2d743fb7f55f01c0ef78dc409ee030225ad9e96..8c0392c8be516176e3de8b9ca8129bea15ebda5a 100644 (file)
@@ -51,6 +51,7 @@
 #include <linux/sched.h>
 #include <linux/sched/autogroup.h>
 #include <linux/sched/loadavg.h>
+#include <linux/sched/stat.h>
 #include <linux/sched/mm.h>
 #include <linux/sched/coredump.h>
 #include <linux/rcupdate.h>
index 5e9e123b4321e9b76329c66c9d72873872e917ce..29d79b175141a2e586602513356baf4398aecd97 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/profile.h>
 #include <linux/sched/signal.h>
 #include <linux/sched/clock.h>
+#include <linux/sched/stat.h>
 #include <linux/module.h>
 #include <linux/irq_work.h>
 #include <linux/posix-timers.h>
index ae79f7679cc238f15ebf66d11bae29b5784a9be7..799499417f5b9843bb72272b4c6963375e879bc9 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/cpu.h>
 #include <linux/sched/signal.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/stat.h>
 #include <linux/cpumask.h>
 #include <linux/smp.h>
 #include <linux/anon_inodes.h>