Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

+26 -1
+1
fs/binfmt_elf.c
··· 35 35 #include <linux/utsname.h> 36 36 #include <linux/coredump.h> 37 37 #include <linux/sched.h> 38 + #include <linux/sched/coredump.h> 38 39 #include <linux/dax.h> 39 40 #include <linux/uaccess.h> 40 41 #include <asm/param.h>
+1
fs/binfmt_elf_fdpic.c
··· 35 35 #include <linux/elf-fdpic.h> 36 36 #include <linux/elfcore.h> 37 37 #include <linux/coredump.h> 38 + #include <linux/sched/coredump.h> 38 39 #include <linux/dax.h> 39 40 40 41 #include <linux/uaccess.h>
+1
fs/coredump.c
··· 16 16 #include <linux/personality.h> 17 17 #include <linux/binfmts.h> 18 18 #include <linux/coredump.h> 19 + #include <linux/sched/coredump.h> 19 20 #include <linux/utsname.h> 20 21 #include <linux/pid_namespace.h> 21 22 #include <linux/module.h>
+1
fs/exec.c
··· 33 33 #include <linux/string.h> 34 34 #include <linux/init.h> 35 35 #include <linux/sched/mm.h> 36 + #include <linux/sched/coredump.h> 36 37 #include <linux/pagemap.h> 37 38 #include <linux/perf_event.h> 38 39 #include <linux/highmem.h>
+1
fs/proc/base.c
··· 87 87 #include <linux/slab.h> 88 88 #include <linux/sched/autogroup.h> 89 89 #include <linux/sched/mm.h> 90 + #include <linux/sched/coredump.h> 90 91 #include <linux/flex_array.h> 91 92 #include <linux/posix-timers.h> 92 93 #ifdef CONFIG_HARDWALL
+1
fs/proc/internal.h
··· 14 14 #include <linux/spinlock.h> 15 15 #include <linux/atomic.h> 16 16 #include <linux/binfmts.h> 17 + #include <linux/sched/coredump.h> 17 18 18 19 struct ctl_table_header; 19 20 struct mempolicy;
+2 -1
include/linux/khugepaged.h
··· 1 1 #ifndef _LINUX_KHUGEPAGED_H 2 2 #define _LINUX_KHUGEPAGED_H 3 3 4 - #include <linux/sched.h> /* MMF_VM_HUGEPAGE */ 4 + #include <linux/sched/coredump.h> /* MMF_VM_HUGEPAGE */ 5 + 5 6 6 7 #ifdef CONFIG_TRANSPARENT_HUGEPAGE 7 8 extern struct attribute_group khugepaged_attr_group;
+1
include/linux/ksm.h
··· 12 12 #include <linux/pagemap.h> 13 13 #include <linux/rmap.h> 14 14 #include <linux/sched.h> 15 + #include <linux/sched/coredump.h> 15 16 16 17 struct stable_node; 17 18 struct mem_cgroup;
+6
include/linux/sched/coredump.h
··· 1 + #ifndef _LINUX_SCHED_COREDUMP_H 2 + #define _LINUX_SCHED_COREDUMP_H 3 + 4 + #include <linux/sched.h> 5 + 6 + #endif /* _LINUX_SCHED_COREDUMP_H */
+1
kernel/cred.c
··· 12 12 #include <linux/cred.h> 13 13 #include <linux/slab.h> 14 14 #include <linux/sched.h> 15 + #include <linux/sched/coredump.h> 15 16 #include <linux/key.h> 16 17 #include <linux/keyctl.h> 17 18 #include <linux/init_task.h>
+1
kernel/events/uprobes.c
··· 28 28 #include <linux/slab.h> 29 29 #include <linux/sched.h> 30 30 #include <linux/sched/mm.h> 31 + #include <linux/sched/coredump.h> 31 32 #include <linux/export.h> 32 33 #include <linux/rmap.h> /* anon_vma_prepare */ 33 34 #include <linux/mmu_notifier.h> /* set_pte_at_notify */
+1
kernel/fork.c
··· 14 14 #include <linux/slab.h> 15 15 #include <linux/sched/autogroup.h> 16 16 #include <linux/sched/mm.h> 17 + #include <linux/sched/coredump.h> 17 18 #include <linux/init.h> 18 19 #include <linux/unistd.h> 19 20 #include <linux/module.h>
+1
kernel/ptrace.c
··· 11 11 #include <linux/export.h> 12 12 #include <linux/sched.h> 13 13 #include <linux/sched/mm.h> 14 + #include <linux/sched/coredump.h> 14 15 #include <linux/errno.h> 15 16 #include <linux/mm.h> 16 17 #include <linux/highmem.h>
+1
kernel/sys.c
··· 52 52 #include <linux/sched/autogroup.h> 53 53 #include <linux/sched/loadavg.h> 54 54 #include <linux/sched/mm.h> 55 + #include <linux/sched/coredump.h> 55 56 #include <linux/rcupdate.h> 56 57 #include <linux/uidgid.h> 57 58 #include <linux/cred.h>
+1
kernel/sysctl.c
··· 63 63 #include <linux/capability.h> 64 64 #include <linux/binfmts.h> 65 65 #include <linux/sched/sysctl.h> 66 + #include <linux/sched/coredump.h> 66 67 #include <linux/kexec.h> 67 68 #include <linux/bpf.h> 68 69 #include <linux/mount.h>
+1
mm/huge_memory.c
··· 9 9 10 10 #include <linux/mm.h> 11 11 #include <linux/sched.h> 12 + #include <linux/sched/coredump.h> 12 13 #include <linux/highmem.h> 13 14 #include <linux/hugetlb.h> 14 15 #include <linux/mmu_notifier.h>
+1
mm/khugepaged.c
··· 3 3 #include <linux/mm.h> 4 4 #include <linux/sched.h> 5 5 #include <linux/sched/mm.h> 6 + #include <linux/sched/coredump.h> 6 7 #include <linux/mmu_notifier.h> 7 8 #include <linux/rmap.h> 8 9 #include <linux/swap.h>
+1
mm/ksm.c
··· 20 20 #include <linux/mman.h> 21 21 #include <linux/sched.h> 22 22 #include <linux/sched/mm.h> 23 + #include <linux/sched/coredump.h> 23 24 #include <linux/rwsem.h> 24 25 #include <linux/pagemap.h> 25 26 #include <linux/rmap.h>
+1
mm/memory.c
··· 41 41 #include <linux/kernel_stat.h> 42 42 #include <linux/mm.h> 43 43 #include <linux/sched/mm.h> 44 + #include <linux/sched/coredump.h> 44 45 #include <linux/hugetlb.h> 45 46 #include <linux/mman.h> 46 47 #include <linux/swap.h>
+1
mm/oom_kill.c
··· 23 23 #include <linux/gfp.h> 24 24 #include <linux/sched.h> 25 25 #include <linux/sched/mm.h> 26 + #include <linux/sched/coredump.h> 26 27 #include <linux/swap.h> 27 28 #include <linux/timex.h> 28 29 #include <linux/jiffies.h>