sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
authorIngo Molnar <mingo@kernel.org>
Wed, 8 Feb 2017 17:51:30 +0000 (18:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:28 +0000 (08:42 +0100)
We are going to split <linux/sched/coredump.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/coredump.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>
20 files changed:
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/coredump.c
fs/exec.c
fs/proc/base.c
fs/proc/internal.h
include/linux/khugepaged.h
include/linux/ksm.h
include/linux/sched/coredump.h [new file with mode: 0644]
kernel/cred.c
kernel/events/uprobes.c
kernel/fork.c
kernel/ptrace.c
kernel/sys.c
kernel/sysctl.c
mm/huge_memory.c
mm/khugepaged.c
mm/ksm.c
mm/memory.c
mm/oom_kill.c

index 443a6f537d569f359c944bb689ce29fd38f06942..fbbe52e1250e36f5b890f4f63af6fe8cc0ea9906 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/utsname.h>
 #include <linux/coredump.h>
 #include <linux/sched.h>
+#include <linux/sched/coredump.h>
 #include <linux/dax.h>
 #include <linux/uaccess.h>
 #include <asm/param.h>
index ffca4bbc3d63a197a043dba1d391864a8a926b08..222873bb689cc7e67b8e7f09c0b3b6c3b3d53a84 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/elf-fdpic.h>
 #include <linux/elfcore.h>
 #include <linux/coredump.h>
+#include <linux/sched/coredump.h>
 #include <linux/dax.h>
 
 #include <linux/uaccess.h>
index ae6b05629ca174d714bbdb3db477bee8f0d8bff8..23a539b292255b2a5c0b17d7836f7a927842b22f 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/personality.h>
 #include <linux/binfmts.h>
 #include <linux/coredump.h>
+#include <linux/sched/coredump.h>
 #include <linux/utsname.h>
 #include <linux/pid_namespace.h>
 #include <linux/module.h>
index 8929da96cca1704ba0d5348f0c2ba73c185d0b96..9c80d011594eea04c3de1923ae681aa8b01aa1ad 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -33,6 +33,7 @@
 #include <linux/string.h>
 #include <linux/init.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/pagemap.h>
 #include <linux/perf_event.h>
 #include <linux/highmem.h>
index 9efe12376af1ba36db7fb9ba1c8ac79267d72375..4c5fa704e38c5139b64e966b8ac4d6997b193d6c 100644 (file)
@@ -87,6 +87,7 @@
 #include <linux/slab.h>
 #include <linux/sched/autogroup.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/flex_array.h>
 #include <linux/posix-timers.h>
 #ifdef CONFIG_HARDWALL
index 5d6960f5f1c03c16634ddc434159d3d3b89b6a92..550e8b183abece0fc1d03748a6df537ac533f5ef 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/spinlock.h>
 #include <linux/atomic.h>
 #include <linux/binfmts.h>
+#include <linux/sched/coredump.h>
 
 struct ctl_table_header;
 struct mempolicy;
index 1e032a1ddb3eaa75c0a0a894c93ee240406226b0..5d9a400af5091f297abec57050b5aa2b2ced11aa 100644 (file)
@@ -1,7 +1,8 @@
 #ifndef _LINUX_KHUGEPAGED_H
 #define _LINUX_KHUGEPAGED_H
 
-#include <linux/sched.h> /* MMF_VM_HUGEPAGE */
+#include <linux/sched/coredump.h> /* MMF_VM_HUGEPAGE */
+
 
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
 extern struct attribute_group khugepaged_attr_group;
index 481c8c4627ca2268b4aec6f5c0f026d894240983..e1cfda4bee588d726e2cfe9089ccc20baa031864 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/pagemap.h>
 #include <linux/rmap.h>
 #include <linux/sched.h>
+#include <linux/sched/coredump.h>
 
 struct stable_node;
 struct mem_cgroup;
diff --git a/include/linux/sched/coredump.h b/include/linux/sched/coredump.h
new file mode 100644 (file)
index 0000000..ab81e56
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _LINUX_SCHED_COREDUMP_H
+#define _LINUX_SCHED_COREDUMP_H
+
+#include <linux/sched.h>
+
+#endif /* _LINUX_SCHED_COREDUMP_H */
index 5f264fb5737dcd01329fdeff02a4143584ba9c38..2bc66075740fdddc966f14f4c20870f5200d2732 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/cred.h>
 #include <linux/slab.h>
 #include <linux/sched.h>
+#include <linux/sched/coredump.h>
 #include <linux/key.h>
 #include <linux/keyctl.h>
 #include <linux/init_task.h>
index 62f2dbd13efc1e3207cae8e2db3f990e1803b74a..0e137f98a50c30db936a8deecedc1f84455aca23 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/slab.h>
 #include <linux/sched.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/export.h>
 #include <linux/rmap.h>                /* anon_vma_prepare */
 #include <linux/mmu_notifier.h>        /* set_pte_at_notify */
index 1875468e2a811a73b4af208860dc4b400edbe977..7332448b668a28ec33cece043e043de8a981650a 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/slab.h>
 #include <linux/sched/autogroup.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/init.h>
 #include <linux/unistd.h>
 #include <linux/module.h>
index 6fe5a2897912424ec59ec99d090b8f87d91976d1..bcdbdc19eb353e26fd25db746f8b2db08d5db1a6 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/export.h>
 #include <linux/sched.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/errno.h>
 #include <linux/mm.h>
 #include <linux/highmem.h>
index dc71ec1e196724f06d4a9404329855f4e29f2a9d..e2d743fb7f55f01c0ef78dc409ee030225ad9e96 100644 (file)
@@ -52,6 +52,7 @@
 #include <linux/sched/autogroup.h>
 #include <linux/sched/loadavg.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/rcupdate.h>
 #include <linux/uidgid.h>
 #include <linux/cred.h>
index bb260ceb3718477fe1cce3c5690c42be4c30087e..acf0a5a06da7c0c47003982e83bb74fcd4ebba5f 100644 (file)
@@ -63,6 +63,7 @@
 #include <linux/capability.h>
 #include <linux/binfmts.h>
 #include <linux/sched/sysctl.h>
+#include <linux/sched/coredump.h>
 #include <linux/kexec.h>
 #include <linux/bpf.h>
 #include <linux/mount.h>
index 71e3dede95b424fb57c5e5c44be3dd5b133fd71f..dee92fa26bbb8e3280c0d31d497b7c16e3b33d48 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/mm.h>
 #include <linux/sched.h>
+#include <linux/sched/coredump.h>
 #include <linux/highmem.h>
 #include <linux/hugetlb.h>
 #include <linux/mmu_notifier.h>
index 212a2afe88307b21821e6a515e493d8faccbaaba..ba40b7f673f4dd44af403c7ed33860c6e2094046 100644 (file)
@@ -3,6 +3,7 @@
 #include <linux/mm.h>
 #include <linux/sched.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/mmu_notifier.h>
 #include <linux/rmap.h>
 #include <linux/swap.h>
index 5632c9d0245786bb1da748232e59ca191d874ac2..19b4f2dea7a591793ff8e18b6eeeafdc5df1de30 100644 (file)
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -20,6 +20,7 @@
 #include <linux/mman.h>
 #include <linux/sched.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/rwsem.h>
 #include <linux/pagemap.h>
 #include <linux/rmap.h>
index b0495ec74d29a75feaccf2208c296cec22c323d2..6fc918b2c459eb9c630e95e45d1f3a3ae34ea315 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/kernel_stat.h>
 #include <linux/mm.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/hugetlb.h>
 #include <linux/mman.h>
 #include <linux/swap.h>
index d2893661869893c4231f2a839c9a930773d44cda..69f75b0146076e69689b4505d82a8cf95789a28d 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/gfp.h>
 #include <linux/sched.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/coredump.h>
 #include <linux/swap.h>
 #include <linux/timex.h>
 #include <linux/jiffies.h>