Commit f7ccbae4 authored by Ingo Molnar's avatar Ingo Molnar

sched/headers: Prepare for new header dependencies before moving code to <linux/sched/coredump.h>

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: default avatarLinus 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: default avatarIngo Molnar <mingo@kernel.org>
parent 6e84f315
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/coredump.h> #include <linux/coredump.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/coredump.h>
#include <linux/dax.h> #include <linux/dax.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <asm/param.h> #include <asm/param.h>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <linux/elf-fdpic.h> #include <linux/elf-fdpic.h>
#include <linux/elfcore.h> #include <linux/elfcore.h>
#include <linux/coredump.h> #include <linux/coredump.h>
#include <linux/sched/coredump.h>
#include <linux/dax.h> #include <linux/dax.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/personality.h> #include <linux/personality.h>
#include <linux/binfmts.h> #include <linux/binfmts.h>
#include <linux/coredump.h> #include <linux/coredump.h>
#include <linux/sched/coredump.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/pid_namespace.h> #include <linux/pid_namespace.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include <linux/highmem.h> #include <linux/highmem.h>
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/sched/autogroup.h> #include <linux/sched/autogroup.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/flex_array.h> #include <linux/flex_array.h>
#include <linux/posix-timers.h> #include <linux/posix-timers.h>
#ifdef CONFIG_HARDWALL #ifdef CONFIG_HARDWALL
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/atomic.h> #include <linux/atomic.h>
#include <linux/binfmts.h> #include <linux/binfmts.h>
#include <linux/sched/coredump.h>
struct ctl_table_header; struct ctl_table_header;
struct mempolicy; struct mempolicy;
......
#ifndef _LINUX_KHUGEPAGED_H #ifndef _LINUX_KHUGEPAGED_H
#define _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 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
extern struct attribute_group khugepaged_attr_group; extern struct attribute_group khugepaged_attr_group;
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/rmap.h> #include <linux/rmap.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/coredump.h>
struct stable_node; struct stable_node;
struct mem_cgroup; struct mem_cgroup;
......
#ifndef _LINUX_SCHED_COREDUMP_H
#define _LINUX_SCHED_COREDUMP_H
#include <linux/sched.h>
#endif /* _LINUX_SCHED_COREDUMP_H */
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/cred.h> #include <linux/cred.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/coredump.h>
#include <linux/key.h> #include <linux/key.h>
#include <linux/keyctl.h> #include <linux/keyctl.h>
#include <linux/init_task.h> #include <linux/init_task.h>
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/export.h> #include <linux/export.h>
#include <linux/rmap.h> /* anon_vma_prepare */ #include <linux/rmap.h> /* anon_vma_prepare */
#include <linux/mmu_notifier.h> /* set_pte_at_notify */ #include <linux/mmu_notifier.h> /* set_pte_at_notify */
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/sched/autogroup.h> #include <linux/sched/autogroup.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/unistd.h> #include <linux/unistd.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <linux/export.h> #include <linux/export.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/highmem.h> #include <linux/highmem.h>
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <linux/sched/autogroup.h> #include <linux/sched/autogroup.h>
#include <linux/sched/loadavg.h> #include <linux/sched/loadavg.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
#include <linux/uidgid.h> #include <linux/uidgid.h>
#include <linux/cred.h> #include <linux/cred.h>
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/binfmts.h> #include <linux/binfmts.h>
#include <linux/sched/sysctl.h> #include <linux/sched/sysctl.h>
#include <linux/sched/coredump.h>
#include <linux/kexec.h> #include <linux/kexec.h>
#include <linux/bpf.h> #include <linux/bpf.h>
#include <linux/mount.h> #include <linux/mount.h>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/coredump.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/hugetlb.h> #include <linux/hugetlb.h>
#include <linux/mmu_notifier.h> #include <linux/mmu_notifier.h>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/mmu_notifier.h> #include <linux/mmu_notifier.h>
#include <linux/rmap.h> #include <linux/rmap.h>
#include <linux/swap.h> #include <linux/swap.h>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/rwsem.h> #include <linux/rwsem.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/rmap.h> #include <linux/rmap.h>
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <linux/kernel_stat.h> #include <linux/kernel_stat.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/hugetlb.h> #include <linux/hugetlb.h>
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/swap.h> #include <linux/swap.h>
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/coredump.h>
#include <linux/swap.h> #include <linux/swap.h>
#include <linux/timex.h> #include <linux/timex.h>
#include <linux/jiffies.h> #include <linux/jiffies.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment