diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-03 18:16:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 02:42:37 -0500 |
commit | 589ee62844e042b0b7d19ef57fb4cff77f3ca294 (patch) | |
tree | 42b67b3ff30a557f5eddb3f26f963483f812d3a5 | |
parent | 2e58f173ab89b29a1373088b8727133dbf7322b0 (diff) |
sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h>
Update code that relied on sched.h including various MM types for them.
This will allow us to remove the <linux/mm_types.h> include from <linux/sched.h>.
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>
89 files changed, 125 insertions, 25 deletions
diff --git a/arch/alpha/include/asm/a.out-core.h b/arch/alpha/include/asm/a.out-core.h index 9e33e92e524c..1610d078b064 100644 --- a/arch/alpha/include/asm/a.out-core.h +++ b/arch/alpha/include/asm/a.out-core.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #ifdef __KERNEL__ | 15 | #ifdef __KERNEL__ |
16 | 16 | ||
17 | #include <linux/user.h> | 17 | #include <linux/user.h> |
18 | #include <linux/mm_types.h> | ||
18 | 19 | ||
19 | /* | 20 | /* |
20 | * Fill in the user structure for an ECOFF core dump. | 21 | * Fill in the user structure for an ECOFF core dump. |
diff --git a/arch/alpha/include/asm/mmu_context.h b/arch/alpha/include/asm/mmu_context.h index 4c51c05333c6..384bd47b5187 100644 --- a/arch/alpha/include/asm/mmu_context.h +++ b/arch/alpha/include/asm/mmu_context.h | |||
@@ -7,6 +7,8 @@ | |||
7 | * Copyright (C) 1996, Linus Torvalds | 7 | * Copyright (C) 1996, Linus Torvalds |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/mm_types.h> | ||
11 | |||
10 | #include <asm/machvec.h> | 12 | #include <asm/machvec.h> |
11 | #include <asm/compiler.h> | 13 | #include <asm/compiler.h> |
12 | #include <asm-generic/mm_hooks.h> | 14 | #include <asm-generic/mm_hooks.h> |
diff --git a/arch/arc/mm/tlb.c b/arch/arc/mm/tlb.c index bdb295e09160..d0126fdfe2d8 100644 --- a/arch/arc/mm/tlb.c +++ b/arch/arc/mm/tlb.c | |||
@@ -53,6 +53,8 @@ | |||
53 | 53 | ||
54 | #include <linux/module.h> | 54 | #include <linux/module.h> |
55 | #include <linux/bug.h> | 55 | #include <linux/bug.h> |
56 | #include <linux/mm_types.h> | ||
57 | |||
56 | #include <asm/arcregs.h> | 58 | #include <asm/arcregs.h> |
57 | #include <asm/setup.h> | 59 | #include <asm/setup.h> |
58 | #include <asm/mmu_context.h> | 60 | #include <asm/mmu_context.h> |
diff --git a/arch/arm/include/asm/mmu_context.h b/arch/arm/include/asm/mmu_context.h index 3cc14dd8587c..7f303295ef19 100644 --- a/arch/arm/include/asm/mmu_context.h +++ b/arch/arm/include/asm/mmu_context.h | |||
@@ -15,7 +15,9 @@ | |||
15 | 15 | ||
16 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
17 | #include <linux/sched.h> | 17 | #include <linux/sched.h> |
18 | #include <linux/mm_types.h> | ||
18 | #include <linux/preempt.h> | 19 | #include <linux/preempt.h> |
20 | |||
19 | #include <asm/cacheflush.h> | 21 | #include <asm/cacheflush.h> |
20 | #include <asm/cachetype.h> | 22 | #include <asm/cachetype.h> |
21 | #include <asm/proc-fns.h> | 23 | #include <asm/proc-fns.h> |
diff --git a/arch/arm/include/asm/tlbflush.h b/arch/arm/include/asm/tlbflush.h index def9e570199f..1897b5196fb5 100644 --- a/arch/arm/include/asm/tlbflush.h +++ b/arch/arm/include/asm/tlbflush.h | |||
@@ -10,6 +10,10 @@ | |||
10 | #ifndef _ASMARM_TLBFLUSH_H | 10 | #ifndef _ASMARM_TLBFLUSH_H |
11 | #define _ASMARM_TLBFLUSH_H | 11 | #define _ASMARM_TLBFLUSH_H |
12 | 12 | ||
13 | #ifndef __ASSEMBLY__ | ||
14 | # include <linux/mm_types.h> | ||
15 | #endif | ||
16 | |||
13 | #ifdef CONFIG_MMU | 17 | #ifdef CONFIG_MMU |
14 | 18 | ||
15 | #include <asm/glue.h> | 19 | #include <asm/glue.h> |
@@ -644,9 +648,6 @@ static inline void update_mmu_cache(struct vm_area_struct *vma, | |||
644 | #elif defined(CONFIG_SMP) /* !CONFIG_MMU */ | 648 | #elif defined(CONFIG_SMP) /* !CONFIG_MMU */ |
645 | 649 | ||
646 | #ifndef __ASSEMBLY__ | 650 | #ifndef __ASSEMBLY__ |
647 | |||
648 | #include <linux/mm_types.h> | ||
649 | |||
650 | static inline void local_flush_tlb_all(void) { } | 651 | static inline void local_flush_tlb_all(void) { } |
651 | static inline void local_flush_tlb_mm(struct mm_struct *mm) { } | 652 | static inline void local_flush_tlb_mm(struct mm_struct *mm) { } |
652 | static inline void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr) { } | 653 | static inline void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr) { } |
diff --git a/arch/arm/kernel/suspend.c b/arch/arm/kernel/suspend.c index 9a2f882a0a2d..ef794c799cb6 100644 --- a/arch/arm/kernel/suspend.c +++ b/arch/arm/kernel/suspend.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <linux/init.h> | 1 | #include <linux/init.h> |
2 | #include <linux/slab.h> | 2 | #include <linux/slab.h> |
3 | #include <linux/mm_types.h> | ||
3 | 4 | ||
4 | #include <asm/cacheflush.h> | 5 | #include <asm/cacheflush.h> |
5 | #include <asm/idmap.h> | 6 | #include <asm/idmap.h> |
diff --git a/arch/arm/kernel/swp_emulate.c b/arch/arm/kernel/swp_emulate.c index 853221f81104..3bda08bee674 100644 --- a/arch/arm/kernel/swp_emulate.c +++ b/arch/arm/kernel/swp_emulate.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/proc_fs.h> | 23 | #include <linux/proc_fs.h> |
24 | #include <linux/seq_file.h> | 24 | #include <linux/seq_file.h> |
25 | #include <linux/sched.h> | 25 | #include <linux/sched.h> |
26 | #include <linux/sched/mm.h> | ||
26 | #include <linux/syscalls.h> | 27 | #include <linux/syscalls.h> |
27 | #include <linux/perf_event.h> | 28 | #include <linux/perf_event.h> |
28 | 29 | ||
diff --git a/arch/arm/mm/idmap.c b/arch/arm/mm/idmap.c index c1a48f88764e..3e511bec69b8 100644 --- a/arch/arm/mm/idmap.c +++ b/arch/arm/mm/idmap.c | |||
@@ -1,6 +1,7 @@ | |||
1 | #include <linux/module.h> | 1 | #include <linux/module.h> |
2 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
3 | #include <linux/slab.h> | 3 | #include <linux/slab.h> |
4 | #include <linux/mm_types.h> | ||
4 | 5 | ||
5 | #include <asm/cputype.h> | 6 | #include <asm/cputype.h> |
6 | #include <asm/idmap.h> | 7 | #include <asm/idmap.h> |
diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h index 3c9f7d18a7e6..3257895a9b5e 100644 --- a/arch/arm64/include/asm/mmu_context.h +++ b/arch/arm64/include/asm/mmu_context.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/compiler.h> | 26 | #include <linux/compiler.h> |
27 | #include <linux/sched.h> | 27 | #include <linux/sched.h> |
28 | #include <linux/sched/hotplug.h> | 28 | #include <linux/sched/hotplug.h> |
29 | #include <linux/mm_types.h> | ||
29 | 30 | ||
30 | #include <asm/cacheflush.h> | 31 | #include <asm/cacheflush.h> |
31 | #include <asm/cpufeature.h> | 32 | #include <asm/cpufeature.h> |
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index bdbd0c3febf4..e52be6aa44ee 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/sched/debug.h> | 33 | #include <linux/sched/debug.h> |
34 | #include <linux/sched/task_stack.h> | 34 | #include <linux/sched/task_stack.h> |
35 | #include <linux/syscalls.h> | 35 | #include <linux/syscalls.h> |
36 | #include <linux/mm_types.h> | ||
36 | 37 | ||
37 | #include <asm/atomic.h> | 38 | #include <asm/atomic.h> |
38 | #include <asm/bug.h> | 39 | #include <asm/bug.h> |
diff --git a/arch/avr32/include/asm/mmu_context.h b/arch/avr32/include/asm/mmu_context.h index 27ff23407100..cd87abba8db7 100644 --- a/arch/avr32/include/asm/mmu_context.h +++ b/arch/avr32/include/asm/mmu_context.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #ifndef __ASM_AVR32_MMU_CONTEXT_H | 12 | #ifndef __ASM_AVR32_MMU_CONTEXT_H |
13 | #define __ASM_AVR32_MMU_CONTEXT_H | 13 | #define __ASM_AVR32_MMU_CONTEXT_H |
14 | 14 | ||
15 | #include <linux/mm_types.h> | ||
16 | |||
15 | #include <asm/tlbflush.h> | 17 | #include <asm/tlbflush.h> |
16 | #include <asm/sysreg.h> | 18 | #include <asm/sysreg.h> |
17 | #include <asm-generic/mm_hooks.h> | 19 | #include <asm-generic/mm_hooks.h> |
diff --git a/arch/blackfin/include/asm/mmu_context.h b/arch/blackfin/include/asm/mmu_context.h index 15b16d3e8de8..0ce6de873b27 100644 --- a/arch/blackfin/include/asm/mmu_context.h +++ b/arch/blackfin/include/asm/mmu_context.h | |||
@@ -9,6 +9,8 @@ | |||
9 | 9 | ||
10 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
11 | #include <linux/sched.h> | 11 | #include <linux/sched.h> |
12 | #include <linux/mm_types.h> | ||
13 | |||
12 | #include <asm/setup.h> | 14 | #include <asm/setup.h> |
13 | #include <asm/page.h> | 15 | #include <asm/page.h> |
14 | #include <asm/pgalloc.h> | 16 | #include <asm/pgalloc.h> |
diff --git a/arch/blackfin/kernel/flat.c b/arch/blackfin/kernel/flat.c index a88daddbf074..b5b658449616 100644 --- a/arch/blackfin/kernel/flat.c +++ b/arch/blackfin/kernel/flat.c | |||
@@ -6,6 +6,7 @@ | |||
6 | 6 | ||
7 | #include <linux/module.h> | 7 | #include <linux/module.h> |
8 | #include <linux/sched.h> | 8 | #include <linux/sched.h> |
9 | #include <linux/mm_types.h> | ||
9 | #include <linux/flat.h> | 10 | #include <linux/flat.h> |
10 | 11 | ||
11 | #define FLAT_BFIN_RELOC_TYPE_16_BIT 0 | 12 | #define FLAT_BFIN_RELOC_TYPE_16_BIT 0 |
diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c index b691ef875a40..89d5162d4ca6 100644 --- a/arch/blackfin/kernel/process.c +++ b/arch/blackfin/kernel/process.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/sched/debug.h> | 15 | #include <linux/sched/debug.h> |
16 | #include <linux/sched/task.h> | 16 | #include <linux/sched/task.h> |
17 | #include <linux/sched/task_stack.h> | 17 | #include <linux/sched/task_stack.h> |
18 | #include <linux/mm_types.h> | ||
18 | #include <linux/tick.h> | 19 | #include <linux/tick.h> |
19 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
20 | #include <linux/err.h> | 21 | #include <linux/err.h> |
diff --git a/arch/blackfin/mm/sram-alloc.c b/arch/blackfin/mm/sram-alloc.c index 1f3b3ef3e103..d2a96c2c02a3 100644 --- a/arch/blackfin/mm/sram-alloc.c +++ b/arch/blackfin/mm/sram-alloc.c | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
20 | #include <linux/rtc.h> | 20 | #include <linux/rtc.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <linux/mm_types.h> | ||
23 | |||
22 | #include <asm/blackfin.h> | 24 | #include <asm/blackfin.h> |
23 | #include <asm/mem_map.h> | 25 | #include <asm/mem_map.h> |
24 | #include "blackfin_sram.h" | 26 | #include "blackfin_sram.h" |
diff --git a/arch/cris/arch-v10/mm/tlb.c b/arch/cris/arch-v10/mm/tlb.c index 21d78c599bab..3225d38bdaea 100644 --- a/arch/cris/arch-v10/mm/tlb.c +++ b/arch/cris/arch-v10/mm/tlb.c | |||
@@ -10,6 +10,8 @@ | |||
10 | * | 10 | * |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/mm_types.h> | ||
14 | |||
13 | #include <asm/tlb.h> | 15 | #include <asm/tlb.h> |
14 | #include <asm/mmu_context.h> | 16 | #include <asm/mmu_context.h> |
15 | #include <arch/svinto.h> | 17 | #include <arch/svinto.h> |
diff --git a/arch/cris/arch-v32/mm/tlb.c b/arch/cris/arch-v32/mm/tlb.c index c030d020660a..bc3de5b5e27c 100644 --- a/arch/cris/arch-v32/mm/tlb.c +++ b/arch/cris/arch-v32/mm/tlb.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * Authors: Bjorn Wesen <bjornw@axis.com> | 6 | * Authors: Bjorn Wesen <bjornw@axis.com> |
7 | * Tobias Anderberg <tobiasa@axis.com>, CRISv32 port. | 7 | * Tobias Anderberg <tobiasa@axis.com>, CRISv32 port. |
8 | */ | 8 | */ |
9 | #include <linux/mm_types.h> | ||
9 | 10 | ||
10 | #include <asm/tlb.h> | 11 | #include <asm/tlb.h> |
11 | #include <asm/mmu_context.h> | 12 | #include <asm/mmu_context.h> |
diff --git a/arch/cris/include/asm/pgtable.h b/arch/cris/include/asm/pgtable.h index ceefc314d64d..2a3210ba4c72 100644 --- a/arch/cris/include/asm/pgtable.h +++ b/arch/cris/include/asm/pgtable.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #include <asm-generic/pgtable-nopmd.h> | 9 | #include <asm-generic/pgtable-nopmd.h> |
10 | 10 | ||
11 | #ifndef __ASSEMBLY__ | 11 | #ifndef __ASSEMBLY__ |
12 | #include <linux/sched.h> | 12 | #include <linux/sched/mm.h> |
13 | #include <asm/mmu.h> | 13 | #include <asm/mmu.h> |
14 | #endif | 14 | #endif |
15 | #include <arch/pgtable.h> | 15 | #include <arch/pgtable.h> |
diff --git a/arch/cris/mm/tlb.c b/arch/cris/mm/tlb.c index b7f8de576777..8413741cfa0f 100644 --- a/arch/cris/mm/tlb.c +++ b/arch/cris/mm/tlb.c | |||
@@ -9,6 +9,8 @@ | |||
9 | 9 | ||
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/mm_types.h> | ||
13 | |||
12 | #include <asm/tlb.h> | 14 | #include <asm/tlb.h> |
13 | 15 | ||
14 | #define D(x) | 16 | #define D(x) |
diff --git a/arch/h8300/kernel/traps.c b/arch/h8300/kernel/traps.c index ee7e3ce40d78..e47a9e0dc278 100644 --- a/arch/h8300/kernel/traps.c +++ b/arch/h8300/kernel/traps.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/types.h> | 17 | #include <linux/types.h> |
18 | #include <linux/sched.h> | 18 | #include <linux/sched.h> |
19 | #include <linux/sched/debug.h> | 19 | #include <linux/sched/debug.h> |
20 | #include <linux/mm_types.h> | ||
20 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
21 | #include <linux/errno.h> | 22 | #include <linux/errno.h> |
22 | #include <linux/init.h> | 23 | #include <linux/init.h> |
diff --git a/arch/hexagon/include/asm/mmu_context.h b/arch/hexagon/include/asm/mmu_context.h index d423d2e73c30..d8a071afdd1d 100644 --- a/arch/hexagon/include/asm/mmu_context.h +++ b/arch/hexagon/include/asm/mmu_context.h | |||
@@ -21,6 +21,8 @@ | |||
21 | #ifndef _ASM_MMU_CONTEXT_H | 21 | #ifndef _ASM_MMU_CONTEXT_H |
22 | #define _ASM_MMU_CONTEXT_H | 22 | #define _ASM_MMU_CONTEXT_H |
23 | 23 | ||
24 | #include <linux/mm_types.h> | ||
25 | |||
24 | #include <asm/setup.h> | 26 | #include <asm/setup.h> |
25 | #include <asm/page.h> | 27 | #include <asm/page.h> |
26 | #include <asm/pgalloc.h> | 28 | #include <asm/pgalloc.h> |
diff --git a/arch/hexagon/kernel/smp.c b/arch/hexagon/kernel/smp.c index c02a6455839e..1f63e91a353b 100644 --- a/arch/hexagon/kernel/smp.c +++ b/arch/hexagon/kernel/smp.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/smp.h> | 29 | #include <linux/smp.h> |
30 | #include <linux/spinlock.h> | 30 | #include <linux/spinlock.h> |
31 | #include <linux/cpu.h> | 31 | #include <linux/cpu.h> |
32 | #include <linux/mm_types.h> | ||
32 | 33 | ||
33 | #include <asm/time.h> /* timer_interrupt */ | 34 | #include <asm/time.h> /* timer_interrupt */ |
34 | #include <asm/hexagon_vm.h> | 35 | #include <asm/hexagon_vm.h> |
diff --git a/arch/ia64/include/asm/mmu_context.h b/arch/ia64/include/asm/mmu_context.h index 7f2a456603cb..9b99368633b5 100644 --- a/arch/ia64/include/asm/mmu_context.h +++ b/arch/ia64/include/asm/mmu_context.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/compiler.h> | 26 | #include <linux/compiler.h> |
27 | #include <linux/percpu.h> | 27 | #include <linux/percpu.h> |
28 | #include <linux/sched.h> | 28 | #include <linux/sched.h> |
29 | #include <linux/mm_types.h> | ||
29 | #include <linux/spinlock.h> | 30 | #include <linux/spinlock.h> |
30 | 31 | ||
31 | #include <asm/processor.h> | 32 | #include <asm/processor.h> |
diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h index 9f3ed9ee8f13..384794e665fc 100644 --- a/arch/ia64/include/asm/pgtable.h +++ b/arch/ia64/include/asm/pgtable.h | |||
@@ -147,7 +147,7 @@ | |||
147 | 147 | ||
148 | # ifndef __ASSEMBLY__ | 148 | # ifndef __ASSEMBLY__ |
149 | 149 | ||
150 | #include <linux/sched.h> /* for mm_struct */ | 150 | #include <linux/sched/mm.h> /* for mm_struct */ |
151 | #include <linux/bitops.h> | 151 | #include <linux/bitops.h> |
152 | #include <asm/cacheflush.h> | 152 | #include <asm/cacheflush.h> |
153 | #include <asm/mmu_context.h> | 153 | #include <asm/mmu_context.h> |
diff --git a/arch/ia64/sn/kernel/sn2/sn2_smp.c b/arch/ia64/sn/kernel/sn2/sn2_smp.c index c98dc965fe82..b73b0ebf8214 100644 --- a/arch/ia64/sn/kernel/sn2/sn2_smp.c +++ b/arch/ia64/sn/kernel/sn2/sn2_smp.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
14 | #include <linux/threads.h> | 14 | #include <linux/threads.h> |
15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
16 | #include <linux/mm_types.h> | ||
16 | #include <linux/smp.h> | 17 | #include <linux/smp.h> |
17 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
18 | #include <linux/irq.h> | 19 | #include <linux/irq.h> |
diff --git a/arch/m32r/include/asm/mmu_context.h b/arch/m32r/include/asm/mmu_context.h index 9fc78fc44445..1230b7050d8e 100644 --- a/arch/m32r/include/asm/mmu_context.h +++ b/arch/m32r/include/asm/mmu_context.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #ifndef __ASSEMBLY__ | 12 | #ifndef __ASSEMBLY__ |
13 | 13 | ||
14 | #include <linux/atomic.h> | 14 | #include <linux/atomic.h> |
15 | #include <linux/mm_types.h> | ||
16 | |||
15 | #include <asm/pgalloc.h> | 17 | #include <asm/pgalloc.h> |
16 | #include <asm/mmu.h> | 18 | #include <asm/mmu.h> |
17 | #include <asm/tlbflush.h> | 19 | #include <asm/tlbflush.h> |
diff --git a/arch/m68k/include/asm/a.out-core.h b/arch/m68k/include/asm/a.out-core.h index f6bfc1d63ff6..ae91ea6bb303 100644 --- a/arch/m68k/include/asm/a.out-core.h +++ b/arch/m68k/include/asm/a.out-core.h | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include <linux/user.h> | 17 | #include <linux/user.h> |
18 | #include <linux/elfcore.h> | 18 | #include <linux/elfcore.h> |
19 | #include <linux/mm_types.h> | ||
19 | 20 | ||
20 | /* | 21 | /* |
21 | * fill in the user structure for an a.out core dump | 22 | * fill in the user structure for an a.out core dump |
diff --git a/arch/m68k/include/asm/mmu_context.h b/arch/m68k/include/asm/mmu_context.h index dc3be991d634..4a6ae6dffa34 100644 --- a/arch/m68k/include/asm/mmu_context.h +++ b/arch/m68k/include/asm/mmu_context.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __M68K_MMU_CONTEXT_H | 2 | #define __M68K_MMU_CONTEXT_H |
3 | 3 | ||
4 | #include <asm-generic/mm_hooks.h> | 4 | #include <asm-generic/mm_hooks.h> |
5 | #include <linux/mm_types.h> | ||
5 | 6 | ||
6 | static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) | 7 | static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) |
7 | { | 8 | { |
diff --git a/arch/metag/include/asm/mmu_context.h b/arch/metag/include/asm/mmu_context.h index ae2a71b5e0be..2e0312748197 100644 --- a/arch/metag/include/asm/mmu_context.h +++ b/arch/metag/include/asm/mmu_context.h | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <asm/cacheflush.h> | 9 | #include <asm/cacheflush.h> |
10 | 10 | ||
11 | #include <linux/io.h> | 11 | #include <linux/io.h> |
12 | #include <linux/mm_types.h> | ||
12 | 13 | ||
13 | static inline void enter_lazy_tlb(struct mm_struct *mm, | 14 | static inline void enter_lazy_tlb(struct mm_struct *mm, |
14 | struct task_struct *tsk) | 15 | struct task_struct *tsk) |
diff --git a/arch/microblaze/include/asm/mmu_context_mm.h b/arch/microblaze/include/asm/mmu_context_mm.h index d68647746448..99472d2ca340 100644 --- a/arch/microblaze/include/asm/mmu_context_mm.h +++ b/arch/microblaze/include/asm/mmu_context_mm.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #define _ASM_MICROBLAZE_MMU_CONTEXT_H | 12 | #define _ASM_MICROBLAZE_MMU_CONTEXT_H |
13 | 13 | ||
14 | #include <linux/atomic.h> | 14 | #include <linux/atomic.h> |
15 | #include <linux/mm_types.h> | ||
16 | |||
15 | #include <asm/bitops.h> | 17 | #include <asm/bitops.h> |
16 | #include <asm/mmu.h> | 18 | #include <asm/mmu.h> |
17 | #include <asm-generic/mm_hooks.h> | 19 | #include <asm-generic/mm_hooks.h> |
diff --git a/arch/microblaze/mm/pgtable.c b/arch/microblaze/mm/pgtable.c index cc732fe357ad..4c0599239915 100644 --- a/arch/microblaze/mm/pgtable.c +++ b/arch/microblaze/mm/pgtable.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/types.h> | 31 | #include <linux/types.h> |
32 | #include <linux/vmalloc.h> | 32 | #include <linux/vmalloc.h> |
33 | #include <linux/init.h> | 33 | #include <linux/init.h> |
34 | #include <linux/mm_types.h> | ||
34 | 35 | ||
35 | #include <asm/pgtable.h> | 36 | #include <asm/pgtable.h> |
36 | #include <asm/pgalloc.h> | 37 | #include <asm/pgalloc.h> |
diff --git a/arch/mips/include/asm/elf.h b/arch/mips/include/asm/elf.h index 7a6c466e5f2a..0eb1a75be105 100644 --- a/arch/mips/include/asm/elf.h +++ b/arch/mips/include/asm/elf.h | |||
@@ -10,6 +10,8 @@ | |||
10 | 10 | ||
11 | #include <linux/auxvec.h> | 11 | #include <linux/auxvec.h> |
12 | #include <linux/fs.h> | 12 | #include <linux/fs.h> |
13 | #include <linux/mm_types.h> | ||
14 | |||
13 | #include <uapi/linux/elf.h> | 15 | #include <uapi/linux/elf.h> |
14 | 16 | ||
15 | #include <asm/current.h> | 17 | #include <asm/current.h> |
diff --git a/arch/mips/include/asm/mmu_context.h b/arch/mips/include/asm/mmu_context.h index 2abf94f72c0a..da2004cef2d5 100644 --- a/arch/mips/include/asm/mmu_context.h +++ b/arch/mips/include/asm/mmu_context.h | |||
@@ -13,8 +13,10 @@ | |||
13 | 13 | ||
14 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
16 | #include <linux/mm_types.h> | ||
16 | #include <linux/smp.h> | 17 | #include <linux/smp.h> |
17 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | |||
18 | #include <asm/cacheflush.h> | 20 | #include <asm/cacheflush.h> |
19 | #include <asm/dsemul.h> | 21 | #include <asm/dsemul.h> |
20 | #include <asm/hazards.h> | 22 | #include <asm/hazards.h> |
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c index 8c60a296294c..6e71130549ea 100644 --- a/arch/mips/kernel/smp.c +++ b/arch/mips/kernel/smp.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/export.h> | 28 | #include <linux/export.h> |
29 | #include <linux/time.h> | 29 | #include <linux/time.h> |
30 | #include <linux/timex.h> | 30 | #include <linux/timex.h> |
31 | #include <linux/sched.h> | 31 | #include <linux/sched/mm.h> |
32 | #include <linux/cpumask.h> | 32 | #include <linux/cpumask.h> |
33 | #include <linux/cpu.h> | 33 | #include <linux/cpu.h> |
34 | #include <linux/err.h> | 34 | #include <linux/err.h> |
diff --git a/arch/mips/math-emu/dsemul.c b/arch/mips/math-emu/dsemul.c index c4469ff4a996..6664908514b3 100644 --- a/arch/mips/math-emu/dsemul.c +++ b/arch/mips/math-emu/dsemul.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <linux/err.h> | 1 | #include <linux/err.h> |
2 | #include <linux/slab.h> | 2 | #include <linux/slab.h> |
3 | #include <linux/mm_types.h> | ||
3 | 4 | ||
4 | #include <asm/branch.h> | 5 | #include <asm/branch.h> |
5 | #include <asm/cacheflush.h> | 6 | #include <asm/cacheflush.h> |
diff --git a/arch/mips/mm/ioremap.c b/arch/mips/mm/ioremap.c index 1f189627440f..1986e09fb457 100644 --- a/arch/mips/mm/ioremap.c +++ b/arch/mips/mm/ioremap.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
14 | #include <linux/vmalloc.h> | 14 | #include <linux/vmalloc.h> |
15 | #include <linux/mm_types.h> | ||
15 | #include <asm/cacheflush.h> | 16 | #include <asm/cacheflush.h> |
16 | #include <asm/io.h> | 17 | #include <asm/io.h> |
17 | #include <asm/tlbflush.h> | 18 | #include <asm/tlbflush.h> |
diff --git a/arch/mn10300/include/asm/mmu_context.h b/arch/mn10300/include/asm/mmu_context.h index 75dbe696f830..d2034f5e6eda 100644 --- a/arch/mn10300/include/asm/mmu_context.h +++ b/arch/mn10300/include/asm/mmu_context.h | |||
@@ -23,6 +23,8 @@ | |||
23 | #define _ASM_MMU_CONTEXT_H | 23 | #define _ASM_MMU_CONTEXT_H |
24 | 24 | ||
25 | #include <linux/atomic.h> | 25 | #include <linux/atomic.h> |
26 | #include <linux/mm_types.h> | ||
27 | |||
26 | #include <asm/pgalloc.h> | 28 | #include <asm/pgalloc.h> |
27 | #include <asm/tlbflush.h> | 29 | #include <asm/tlbflush.h> |
28 | #include <asm-generic/mm_hooks.h> | 30 | #include <asm-generic/mm_hooks.h> |
diff --git a/arch/mn10300/kernel/smp.c b/arch/mn10300/kernel/smp.c index d924f7a79708..35d2c3fe6f76 100644 --- a/arch/mn10300/kernel/smp.c +++ b/arch/mn10300/kernel/smp.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/err.h> | 21 | #include <linux/err.h> |
22 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
24 | #include <linux/sched.h> | 24 | #include <linux/sched/mm.h> |
25 | #include <linux/sched/task.h> | 25 | #include <linux/sched/task.h> |
26 | #include <linux/profile.h> | 26 | #include <linux/profile.h> |
27 | #include <linux/smp.h> | 27 | #include <linux/smp.h> |
diff --git a/arch/mn10300/mm/tlb-smp.c b/arch/mn10300/mm/tlb-smp.c index 9a39ea9031d4..085f2bb691ac 100644 --- a/arch/mn10300/mm/tlb-smp.c +++ b/arch/mn10300/mm/tlb-smp.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/err.h> | 20 | #include <linux/err.h> |
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include <linux/sched.h> | 23 | #include <linux/sched/mm.h> |
24 | #include <linux/profile.h> | 24 | #include <linux/profile.h> |
25 | #include <linux/smp.h> | 25 | #include <linux/smp.h> |
26 | #include <asm/tlbflush.h> | 26 | #include <asm/tlbflush.h> |
diff --git a/arch/nios2/include/asm/mmu_context.h b/arch/nios2/include/asm/mmu_context.h index 294b4b1f81d4..78ab3dacf579 100644 --- a/arch/nios2/include/asm/mmu_context.h +++ b/arch/nios2/include/asm/mmu_context.h | |||
@@ -13,6 +13,8 @@ | |||
13 | #ifndef _ASM_NIOS2_MMU_CONTEXT_H | 13 | #ifndef _ASM_NIOS2_MMU_CONTEXT_H |
14 | #define _ASM_NIOS2_MMU_CONTEXT_H | 14 | #define _ASM_NIOS2_MMU_CONTEXT_H |
15 | 15 | ||
16 | #include <linux/mm_types.h> | ||
17 | |||
16 | #include <asm-generic/mm_hooks.h> | 18 | #include <asm-generic/mm_hooks.h> |
17 | 19 | ||
18 | extern void mmu_context_init(void); | 20 | extern void mmu_context_init(void); |
diff --git a/arch/nios2/kernel/process.c b/arch/nios2/kernel/process.c index 869a4d59de32..509e7855e8dc 100644 --- a/arch/nios2/kernel/process.c +++ b/arch/nios2/kernel/process.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/sched/debug.h> | 17 | #include <linux/sched/debug.h> |
18 | #include <linux/sched/task.h> | 18 | #include <linux/sched/task.h> |
19 | #include <linux/sched/task_stack.h> | 19 | #include <linux/sched/task_stack.h> |
20 | #include <linux/mm_types.h> | ||
20 | #include <linux/tick.h> | 21 | #include <linux/tick.h> |
21 | #include <linux/uaccess.h> | 22 | #include <linux/uaccess.h> |
22 | 23 | ||
diff --git a/arch/powerpc/kernel/io-workarounds.c b/arch/powerpc/kernel/io-workarounds.c index 5f8613ceb97f..a582e0d42525 100644 --- a/arch/powerpc/kernel/io-workarounds.c +++ b/arch/powerpc/kernel/io-workarounds.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #undef DEBUG | 12 | #undef DEBUG |
13 | 13 | ||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/sched.h> /* for init_mm */ | 15 | #include <linux/sched/mm.h> /* for init_mm */ |
16 | 16 | ||
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/machdep.h> | 18 | #include <asm/machdep.h> |
diff --git a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c index b0333cc737dd..0fda4230f6c0 100644 --- a/arch/powerpc/kvm/e500_mmu_host.c +++ b/arch/powerpc/kvm/e500_mmu_host.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <linux/highmem.h> | 25 | #include <linux/highmem.h> |
26 | #include <linux/log2.h> | 26 | #include <linux/log2.h> |
27 | #include <linux/uaccess.h> | 27 | #include <linux/uaccess.h> |
28 | #include <linux/sched.h> | 28 | #include <linux/sched/mm.h> |
29 | #include <linux/rwsem.h> | 29 | #include <linux/rwsem.h> |
30 | #include <linux/vmalloc.h> | 30 | #include <linux/vmalloc.h> |
31 | #include <linux/hugetlb.h> | 31 | #include <linux/hugetlb.h> |
diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c index 043415f0bdb1..f3917705c686 100644 --- a/arch/powerpc/lib/feature-fixups.c +++ b/arch/powerpc/lib/feature-fixups.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/string.h> | 18 | #include <linux/string.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/sched/mm.h> | ||
20 | #include <asm/cputable.h> | 21 | #include <asm/cputable.h> |
21 | #include <asm/code-patching.h> | 22 | #include <asm/code-patching.h> |
22 | #include <asm/page.h> | 23 | #include <asm/page.h> |
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 12d679df50bd..c554768b1fa2 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #include <linux/spinlock.h> | 24 | #include <linux/spinlock.h> |
25 | #include <linux/errno.h> | 25 | #include <linux/errno.h> |
26 | #include <linux/sched.h> | 26 | #include <linux/sched/mm.h> |
27 | #include <linux/proc_fs.h> | 27 | #include <linux/proc_fs.h> |
28 | #include <linux/stat.h> | 28 | #include <linux/stat.h> |
29 | #include <linux/sysctl.h> | 29 | #include <linux/sysctl.h> |
diff --git a/arch/powerpc/mm/pgtable-book3s64.c b/arch/powerpc/mm/pgtable-book3s64.c index b798ff674fab..5fcb3dd74c13 100644 --- a/arch/powerpc/mm/pgtable-book3s64.c +++ b/arch/powerpc/mm/pgtable-book3s64.c | |||
@@ -8,6 +8,8 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/sched.h> | 10 | #include <linux/sched.h> |
11 | #include <linux/mm_types.h> | ||
12 | |||
11 | #include <asm/pgalloc.h> | 13 | #include <asm/pgalloc.h> |
12 | #include <asm/tlb.h> | 14 | #include <asm/tlb.h> |
13 | 15 | ||
diff --git a/arch/powerpc/mm/pgtable-hash64.c b/arch/powerpc/mm/pgtable-hash64.c index c23e286a6b8f..8b85a14b08ea 100644 --- a/arch/powerpc/mm/pgtable-hash64.c +++ b/arch/powerpc/mm/pgtable-hash64.c | |||
@@ -10,6 +10,8 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
13 | #include <linux/mm_types.h> | ||
14 | |||
13 | #include <asm/pgalloc.h> | 15 | #include <asm/pgalloc.h> |
14 | #include <asm/tlb.h> | 16 | #include <asm/tlb.h> |
15 | 17 | ||
diff --git a/arch/powerpc/mm/pgtable-radix.c b/arch/powerpc/mm/pgtable-radix.c index feeda90cd06d..2a590a98e652 100644 --- a/arch/powerpc/mm/pgtable-radix.c +++ b/arch/powerpc/mm/pgtable-radix.c | |||
@@ -8,7 +8,7 @@ | |||
8 | * as published by the Free Software Foundation; either version | 8 | * as published by the Free Software Foundation; either version |
9 | * 2 of the License, or (at your option) any later version. | 9 | * 2 of the License, or (at your option) any later version. |
10 | */ | 10 | */ |
11 | #include <linux/sched.h> | 11 | #include <linux/sched/mm.h> |
12 | #include <linux/memblock.h> | 12 | #include <linux/memblock.h> |
13 | #include <linux/of_fdt.h> | 13 | #include <linux/of_fdt.h> |
14 | 14 | ||
diff --git a/arch/powerpc/mm/slb.c b/arch/powerpc/mm/slb.c index 48fc28bab544..5e01b2ece1d0 100644 --- a/arch/powerpc/mm/slb.c +++ b/arch/powerpc/mm/slb.c | |||
@@ -22,6 +22,8 @@ | |||
22 | #include <asm/cacheflush.h> | 22 | #include <asm/cacheflush.h> |
23 | #include <asm/smp.h> | 23 | #include <asm/smp.h> |
24 | #include <linux/compiler.h> | 24 | #include <linux/compiler.h> |
25 | #include <linux/mm_types.h> | ||
26 | |||
25 | #include <asm/udbg.h> | 27 | #include <asm/udbg.h> |
26 | #include <asm/code-patching.h> | 28 | #include <asm/code-patching.h> |
27 | 29 | ||
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h index 83aaefed2a7b..1d48880b3cc1 100644 --- a/arch/s390/include/asm/elf.h +++ b/arch/s390/include/asm/elf.h | |||
@@ -132,7 +132,7 @@ typedef s390_fp_regs compat_elf_fpregset_t; | |||
132 | typedef s390_compat_regs compat_elf_gregset_t; | 132 | typedef s390_compat_regs compat_elf_gregset_t; |
133 | 133 | ||
134 | #include <linux/compat.h> | 134 | #include <linux/compat.h> |
135 | #include <linux/sched.h> /* for task_struct */ | 135 | #include <linux/sched/mm.h> /* for task_struct */ |
136 | #include <asm/mmu_context.h> | 136 | #include <asm/mmu_context.h> |
137 | 137 | ||
138 | #include <asm/vdso.h> | 138 | #include <asm/vdso.h> |
diff --git a/arch/s390/include/asm/mmu_context.h b/arch/s390/include/asm/mmu_context.h index 9b828c073176..6e31d87fb669 100644 --- a/arch/s390/include/asm/mmu_context.h +++ b/arch/s390/include/asm/mmu_context.h | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | #include <asm/pgalloc.h> | 10 | #include <asm/pgalloc.h> |
11 | #include <linux/uaccess.h> | 11 | #include <linux/uaccess.h> |
12 | #include <linux/mm_types.h> | ||
12 | #include <asm/tlbflush.h> | 13 | #include <asm/tlbflush.h> |
13 | #include <asm/ctl_reg.h> | 14 | #include <asm/ctl_reg.h> |
14 | 15 | ||
diff --git a/arch/s390/kernel/processor.c b/arch/s390/kernel/processor.c index bc2b60dcb178..bf7854523831 100644 --- a/arch/s390/kernel/processor.c +++ b/arch/s390/kernel/processor.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/seq_file.h> | 12 | #include <linux/seq_file.h> |
13 | #include <linux/mm_types.h> | ||
13 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
14 | #include <linux/cpu.h> | 15 | #include <linux/cpu.h> |
15 | #include <asm/diag.h> | 16 | #include <asm/diag.h> |
diff --git a/arch/s390/kvm/gaccess.c b/arch/s390/kvm/gaccess.c index 4492c9363178..d55c829a5944 100644 --- a/arch/s390/kvm/gaccess.c +++ b/arch/s390/kvm/gaccess.c | |||
@@ -6,7 +6,9 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <linux/vmalloc.h> | 8 | #include <linux/vmalloc.h> |
9 | #include <linux/mm_types.h> | ||
9 | #include <linux/err.h> | 10 | #include <linux/err.h> |
11 | |||
10 | #include <asm/pgtable.h> | 12 | #include <asm/pgtable.h> |
11 | #include <asm/gmap.h> | 13 | #include <asm/gmap.h> |
12 | #include "kvm-s390.h" | 14 | #include "kvm-s390.h" |
diff --git a/arch/s390/kvm/priv.c b/arch/s390/kvm/priv.c index fb4b494cde9b..64b6a309f2c4 100644 --- a/arch/s390/kvm/priv.c +++ b/arch/s390/kvm/priv.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/gfp.h> | 15 | #include <linux/gfp.h> |
16 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
17 | #include <linux/compat.h> | 17 | #include <linux/compat.h> |
18 | #include <linux/mm_types.h> | ||
19 | |||
18 | #include <asm/asm-offsets.h> | 20 | #include <asm/asm-offsets.h> |
19 | #include <asm/facility.h> | 21 | #include <asm/facility.h> |
20 | #include <asm/current.h> | 22 | #include <asm/current.h> |
diff --git a/arch/score/include/asm/mmu_context.h b/arch/score/include/asm/mmu_context.h index 2644577c96e8..073f95d350de 100644 --- a/arch/score/include/asm/mmu_context.h +++ b/arch/score/include/asm/mmu_context.h | |||
@@ -3,7 +3,9 @@ | |||
3 | 3 | ||
4 | #include <linux/errno.h> | 4 | #include <linux/errno.h> |
5 | #include <linux/sched.h> | 5 | #include <linux/sched.h> |
6 | #include <linux/mm_types.h> | ||
6 | #include <linux/slab.h> | 7 | #include <linux/slab.h> |
8 | |||
7 | #include <asm-generic/mm_hooks.h> | 9 | #include <asm-generic/mm_hooks.h> |
8 | 10 | ||
9 | #include <asm/cacheflush.h> | 11 | #include <asm/cacheflush.h> |
diff --git a/arch/score/kernel/traps.c b/arch/score/kernel/traps.c index 8a54d320fb41..fe68de6c746c 100644 --- a/arch/score/kernel/traps.c +++ b/arch/score/kernel/traps.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/extable.h> | 26 | #include <linux/extable.h> |
27 | #include <linux/sched/signal.h> | 27 | #include <linux/sched/signal.h> |
28 | #include <linux/sched/debug.h> | 28 | #include <linux/sched/debug.h> |
29 | #include <linux/mm_types.h> | ||
29 | 30 | ||
30 | #include <asm/cacheflush.h> | 31 | #include <asm/cacheflush.h> |
31 | #include <asm/irq.h> | 32 | #include <asm/irq.h> |
diff --git a/arch/sh/include/asm/mmu_context.h b/arch/sh/include/asm/mmu_context.h index 35ffdd081d26..eb6ac3c10c44 100644 --- a/arch/sh/include/asm/mmu_context.h +++ b/arch/sh/include/asm/mmu_context.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <cpu/mmu_context.h> | 11 | #include <cpu/mmu_context.h> |
12 | #include <asm/tlbflush.h> | 12 | #include <asm/tlbflush.h> |
13 | #include <linux/uaccess.h> | 13 | #include <linux/uaccess.h> |
14 | #include <linux/mm_types.h> | ||
15 | |||
14 | #include <asm/io.h> | 16 | #include <asm/io.h> |
15 | #include <asm-generic/mm_hooks.h> | 17 | #include <asm-generic/mm_hooks.h> |
16 | 18 | ||
diff --git a/arch/sparc/include/asm/mmu_context_64.h b/arch/sparc/include/asm/mmu_context_64.h index d0317993e947..22fede6eba11 100644 --- a/arch/sparc/include/asm/mmu_context_64.h +++ b/arch/sparc/include/asm/mmu_context_64.h | |||
@@ -6,6 +6,8 @@ | |||
6 | #ifndef __ASSEMBLY__ | 6 | #ifndef __ASSEMBLY__ |
7 | 7 | ||
8 | #include <linux/spinlock.h> | 8 | #include <linux/spinlock.h> |
9 | #include <linux/mm_types.h> | ||
10 | |||
9 | #include <asm/spitfire.h> | 11 | #include <asm/spitfire.h> |
10 | #include <asm-generic/mm_hooks.h> | 12 | #include <asm-generic/mm_hooks.h> |
11 | 13 | ||
diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h index 7932a4a37817..56e49c8f770d 100644 --- a/arch/sparc/include/asm/pgtable_64.h +++ b/arch/sparc/include/asm/pgtable_64.h | |||
@@ -878,6 +878,9 @@ static inline unsigned long pud_pfn(pud_t pud) | |||
878 | #define pte_offset_map pte_index | 878 | #define pte_offset_map pte_index |
879 | #define pte_unmap(pte) do { } while (0) | 879 | #define pte_unmap(pte) do { } while (0) |
880 | 880 | ||
881 | /* We cannot include <linux/mm_types.h> at this point yet: */ | ||
882 | extern struct mm_struct init_mm; | ||
883 | |||
881 | /* Actual page table PTE updates. */ | 884 | /* Actual page table PTE updates. */ |
882 | void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, | 885 | void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, |
883 | pte_t *ptep, pte_t orig, int fullmm, | 886 | pte_t *ptep, pte_t orig, int fullmm, |
diff --git a/arch/sparc/kernel/asm-offsets.c b/arch/sparc/kernel/asm-offsets.c index f76389a32342..3f09e1c83f58 100644 --- a/arch/sparc/kernel/asm-offsets.c +++ b/arch/sparc/kernel/asm-offsets.c | |||
@@ -11,6 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/sched.h> | 13 | #include <linux/sched.h> |
14 | #include <linux/mm_types.h> | ||
14 | // #include <linux/mm.h> | 15 | // #include <linux/mm.h> |
15 | #include <linux/kbuild.h> | 16 | #include <linux/kbuild.h> |
16 | 17 | ||
diff --git a/arch/sparc/kernel/traps_32.c b/arch/sparc/kernel/traps_32.c index 26740a2f285d..2de72a49308a 100644 --- a/arch/sparc/kernel/traps_32.c +++ b/arch/sparc/kernel/traps_32.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/sched.h> /* for jiffies */ | 12 | #include <linux/sched.h> /* for jiffies */ |
13 | #include <linux/sched/debug.h> | 13 | #include <linux/sched/debug.h> |
14 | #include <linux/mm_types.h> | ||
14 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
15 | #include <linux/signal.h> | 16 | #include <linux/signal.h> |
16 | #include <linux/smp.h> | 17 | #include <linux/smp.h> |
diff --git a/arch/sparc/mm/tsb.c b/arch/sparc/mm/tsb.c index 23479c3d39f0..0a04811f06b7 100644 --- a/arch/sparc/mm/tsb.c +++ b/arch/sparc/mm/tsb.c | |||
@@ -6,6 +6,8 @@ | |||
6 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
7 | #include <linux/preempt.h> | 7 | #include <linux/preempt.h> |
8 | #include <linux/slab.h> | 8 | #include <linux/slab.h> |
9 | #include <linux/mm_types.h> | ||
10 | |||
9 | #include <asm/page.h> | 11 | #include <asm/page.h> |
10 | #include <asm/pgtable.h> | 12 | #include <asm/pgtable.h> |
11 | #include <asm/mmu_context.h> | 13 | #include <asm/mmu_context.h> |
diff --git a/arch/tile/include/asm/mmu_context.h b/arch/tile/include/asm/mmu_context.h index f67753db1f78..45a4b4c424cf 100644 --- a/arch/tile/include/asm/mmu_context.h +++ b/arch/tile/include/asm/mmu_context.h | |||
@@ -16,6 +16,8 @@ | |||
16 | #define _ASM_TILE_MMU_CONTEXT_H | 16 | #define _ASM_TILE_MMU_CONTEXT_H |
17 | 17 | ||
18 | #include <linux/smp.h> | 18 | #include <linux/smp.h> |
19 | #include <linux/mm_types.h> | ||
20 | |||
19 | #include <asm/setup.h> | 21 | #include <asm/setup.h> |
20 | #include <asm/page.h> | 22 | #include <asm/page.h> |
21 | #include <asm/pgalloc.h> | 23 | #include <asm/pgalloc.h> |
diff --git a/arch/um/include/asm/mmu_context.h b/arch/um/include/asm/mmu_context.h index 1a60e1328e2f..94ac2739918c 100644 --- a/arch/um/include/asm/mmu_context.h +++ b/arch/um/include/asm/mmu_context.h | |||
@@ -7,6 +7,8 @@ | |||
7 | #define __UM_MMU_CONTEXT_H | 7 | #define __UM_MMU_CONTEXT_H |
8 | 8 | ||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/mm_types.h> | ||
11 | |||
10 | #include <asm/mmu.h> | 12 | #include <asm/mmu.h> |
11 | 13 | ||
12 | extern void uml_setup_stubs(struct mm_struct *mm); | 14 | extern void uml_setup_stubs(struct mm_struct *mm); |
diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index 31968677a0d0..a43d42bf0a86 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c | |||
@@ -7,7 +7,7 @@ | |||
7 | #include <linux/module.h> | 7 | #include <linux/module.h> |
8 | #include <linux/fs.h> | 8 | #include <linux/fs.h> |
9 | #include <linux/ptrace.h> | 9 | #include <linux/ptrace.h> |
10 | #include <linux/sched.h> | 10 | #include <linux/sched/mm.h> |
11 | #include <linux/sched/task.h> | 11 | #include <linux/sched/task.h> |
12 | #include <linux/sched/task_stack.h> | 12 | #include <linux/sched/task_stack.h> |
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
diff --git a/arch/um/kernel/reboot.c b/arch/um/kernel/reboot.c index 0bc921cee0b1..71f3e9217cf2 100644 --- a/arch/um/kernel/reboot.c +++ b/arch/um/kernel/reboot.c | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | #include <linux/sched/signal.h> | 6 | #include <linux/sched/signal.h> |
7 | #include <linux/sched/task.h> | 7 | #include <linux/sched/task.h> |
8 | #include <linux/sched/mm.h> | ||
8 | #include <linux/spinlock.h> | 9 | #include <linux/spinlock.h> |
9 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
10 | #include <linux/oom.h> | 11 | #include <linux/oom.h> |
diff --git a/arch/um/kernel/skas/process.c b/arch/um/kernel/skas/process.c index ddecf326dab2..3a952a4f7965 100644 --- a/arch/um/kernel/skas/process.c +++ b/arch/um/kernel/skas/process.c | |||
@@ -4,8 +4,9 @@ | |||
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include <linux/init.h> | 6 | #include <linux/init.h> |
7 | #include <linux/sched.h> | 7 | #include <linux/sched/mm.h> |
8 | #include <linux/sched/task_stack.h> | 8 | #include <linux/sched/task_stack.h> |
9 | |||
9 | #include <as-layout.h> | 10 | #include <as-layout.h> |
10 | #include <kern.h> | 11 | #include <kern.h> |
11 | #include <os.h> | 12 | #include <os.h> |
diff --git a/arch/x86/entry/vsyscall/vsyscall_64.c b/arch/x86/entry/vsyscall/vsyscall_64.c index df91fb393a01..ce1d7534fa53 100644 --- a/arch/x86/entry/vsyscall/vsyscall_64.c +++ b/arch/x86/entry/vsyscall/vsyscall_64.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
29 | #include <linux/timer.h> | 29 | #include <linux/timer.h> |
30 | #include <linux/sched/signal.h> | 30 | #include <linux/sched/signal.h> |
31 | #include <linux/mm_types.h> | ||
31 | #include <linux/syscalls.h> | 32 | #include <linux/syscalls.h> |
32 | #include <linux/ratelimit.h> | 33 | #include <linux/ratelimit.h> |
33 | 34 | ||
diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 2ecc0e97772b..349d4d17aa7f 100644 --- a/arch/x86/events/core.c +++ b/arch/x86/events/core.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/export.h> | 20 | #include <linux/export.h> |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/kdebug.h> | 22 | #include <linux/kdebug.h> |
23 | #include <linux/sched.h> | 23 | #include <linux/sched/mm.h> |
24 | #include <linux/sched/clock.h> | 24 | #include <linux/sched/clock.h> |
25 | #include <linux/uaccess.h> | 25 | #include <linux/uaccess.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
diff --git a/arch/x86/include/asm/a.out-core.h b/arch/x86/include/asm/a.out-core.h index 7a15588e45d4..7d3ece8bfb61 100644 --- a/arch/x86/include/asm/a.out-core.h +++ b/arch/x86/include/asm/a.out-core.h | |||
@@ -17,6 +17,8 @@ | |||
17 | 17 | ||
18 | #include <linux/user.h> | 18 | #include <linux/user.h> |
19 | #include <linux/elfcore.h> | 19 | #include <linux/elfcore.h> |
20 | #include <linux/mm_types.h> | ||
21 | |||
20 | #include <asm/debugreg.h> | 22 | #include <asm/debugreg.h> |
21 | 23 | ||
22 | /* | 24 | /* |
diff --git a/arch/x86/include/asm/mpx.h b/arch/x86/include/asm/mpx.h index 0b416d4cf73b..a0d662be4c5b 100644 --- a/arch/x86/include/asm/mpx.h +++ b/arch/x86/include/asm/mpx.h | |||
@@ -2,6 +2,8 @@ | |||
2 | #define _ASM_X86_MPX_H | 2 | #define _ASM_X86_MPX_H |
3 | 3 | ||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | #include <linux/mm_types.h> | ||
6 | |||
5 | #include <asm/ptrace.h> | 7 | #include <asm/ptrace.h> |
6 | #include <asm/insn.h> | 8 | #include <asm/insn.h> |
7 | 9 | ||
diff --git a/arch/x86/mm/mpx.c b/arch/x86/mm/mpx.c index c98079684bdb..5126dfd52b18 100644 --- a/arch/x86/mm/mpx.c +++ b/arch/x86/mm/mpx.c | |||
@@ -7,6 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
9 | #include <linux/slab.h> | 9 | #include <linux/slab.h> |
10 | #include <linux/mm_types.h> | ||
10 | #include <linux/syscalls.h> | 11 | #include <linux/syscalls.h> |
11 | #include <linux/sched/sysctl.h> | 12 | #include <linux/sched/sysctl.h> |
12 | 13 | ||
diff --git a/arch/x86/um/syscalls_64.c b/arch/x86/um/syscalls_64.c index e6552275320b..10d907098c26 100644 --- a/arch/x86/um/syscalls_64.c +++ b/arch/x86/um/syscalls_64.c | |||
@@ -6,6 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <linux/sched.h> | 8 | #include <linux/sched.h> |
9 | #include <linux/sched/mm.h> | ||
9 | #include <linux/uaccess.h> | 10 | #include <linux/uaccess.h> |
10 | #include <asm/prctl.h> /* XXX This should get the constants from libc */ | 11 | #include <asm/prctl.h> /* XXX This should get the constants from libc */ |
11 | #include <os.h> | 12 | #include <os.h> |
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index f6740b5b1738..37cb5aad71de 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -38,7 +38,7 @@ | |||
38 | * | 38 | * |
39 | * Jeremy Fitzhardinge <jeremy@xensource.com>, XenSource Inc, 2007 | 39 | * Jeremy Fitzhardinge <jeremy@xensource.com>, XenSource Inc, 2007 |
40 | */ | 40 | */ |
41 | #include <linux/sched.h> | 41 | #include <linux/sched/mm.h> |
42 | #include <linux/highmem.h> | 42 | #include <linux/highmem.h> |
43 | #include <linux/debugfs.h> | 43 | #include <linux/debugfs.h> |
44 | #include <linux/bug.h> | 44 | #include <linux/bug.h> |
diff --git a/arch/xtensa/include/asm/mmu_context.h b/arch/xtensa/include/asm/mmu_context.h index 04c8ebdc4517..f7e186dfc4e4 100644 --- a/arch/xtensa/include/asm/mmu_context.h +++ b/arch/xtensa/include/asm/mmu_context.h | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/stringify.h> | 18 | #include <linux/stringify.h> |
19 | #include <linux/sched.h> | 19 | #include <linux/sched.h> |
20 | #include <linux/mm_types.h> | ||
20 | 21 | ||
21 | #include <asm/vectors.h> | 22 | #include <asm/vectors.h> |
22 | 23 | ||
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c index d83de985e88c..6acc4313363e 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c | |||
@@ -23,6 +23,8 @@ | |||
23 | 23 | ||
24 | #include <linux/printk.h> | 24 | #include <linux/printk.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/mm_types.h> | ||
27 | |||
26 | #include "kfd_priv.h" | 28 | #include "kfd_priv.h" |
27 | #include "kfd_mqd_manager.h" | 29 | #include "kfd_mqd_manager.h" |
28 | #include "cik_regs.h" | 30 | #include "cik_regs.h" |
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c index fa32c32fa1c2..a9b9882a9a77 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | |||
@@ -23,6 +23,8 @@ | |||
23 | 23 | ||
24 | #include <linux/printk.h> | 24 | #include <linux/printk.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/mm_types.h> | ||
27 | |||
26 | #include "kfd_priv.h" | 28 | #include "kfd_priv.h" |
27 | #include "kfd_mqd_manager.h" | 29 | #include "kfd_mqd_manager.h" |
28 | #include "vi_structs.h" | 30 | #include "vi_structs.h" |
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index 318ec5267bdf..86ecd3ea6a4b 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/delay.h> | 37 | #include <linux/delay.h> |
38 | #include <linux/errno.h> | 38 | #include <linux/errno.h> |
39 | #include <linux/list.h> | 39 | #include <linux/list.h> |
40 | #include <linux/sched.h> | 40 | #include <linux/sched/mm.h> |
41 | #include <linux/spinlock.h> | 41 | #include <linux/spinlock.h> |
42 | #include <linux/ethtool.h> | 42 | #include <linux/ethtool.h> |
43 | #include <linux/rtnetlink.h> | 43 | #include <linux/rtnetlink.h> |
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h index d19662f635b1..5846c47c8d55 100644 --- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h +++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/idr.h> | 37 | #include <linux/idr.h> |
38 | #include <linux/completion.h> | 38 | #include <linux/completion.h> |
39 | #include <linux/netdevice.h> | 39 | #include <linux/netdevice.h> |
40 | #include <linux/sched.h> | 40 | #include <linux/sched/mm.h> |
41 | #include <linux/pci.h> | 41 | #include <linux/pci.h> |
42 | #include <linux/dma-mapping.h> | 42 | #include <linux/dma-mapping.h> |
43 | #include <linux/inet.h> | 43 | #include <linux/inet.h> |
diff --git a/drivers/media/v4l2-core/videobuf-dma-sg.c b/drivers/media/v4l2-core/videobuf-dma-sg.c index 36bd904946bd..0b5c43f7e020 100644 --- a/drivers/media/v4l2-core/videobuf-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf-dma-sg.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/moduleparam.h> | 23 | #include <linux/moduleparam.h> |
24 | #include <linux/sched.h> | 24 | #include <linux/sched/mm.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | 27 | ||
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 9b4688ab1d8e..bee1a36bc2ec 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/sched.h> | 15 | #include <linux/sched/mm.h> |
16 | #include <linux/magic.h> | 16 | #include <linux/magic.h> |
17 | #include <linux/binfmts.h> | 17 | #include <linux/binfmts.h> |
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c index 35043a8c4529..8e4dc7ab584c 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
14 | #include <linux/poll.h> | 14 | #include <linux/poll.h> |
15 | #include <linux/pagemap.h> | 15 | #include <linux/pagemap.h> |
16 | #include <linux/sched.h> | 16 | #include <linux/sched/mm.h> |
17 | #include <linux/fsnotify.h> | 17 | #include <linux/fsnotify.h> |
18 | 18 | ||
19 | #include "kernfs-internal.h" | 19 | #include "kernfs-internal.h" |
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index d81b0ba9921f..2ef16bf25826 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/bug.h> | 40 | #include <linux/bug.h> |
41 | #include <linux/rbtree.h> | 41 | #include <linux/rbtree.h> |
42 | #include <linux/kernel.h> | 42 | #include <linux/kernel.h> |
43 | #include <linux/mm_types.h> | ||
43 | #include <linux/list.h> | 44 | #include <linux/list.h> |
44 | #include <linux/spinlock.h> | 45 | #include <linux/spinlock.h> |
45 | #ifdef CONFIG_DRM_DEBUG_MM | 46 | #ifdef CONFIG_DRM_DEBUG_MM |
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 452c9799318c..f6841c19c913 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/sched/autogroup.h> | 15 | #include <linux/sched/autogroup.h> |
16 | #include <net/net_namespace.h> | 16 | #include <net/net_namespace.h> |
17 | #include <linux/sched/rt.h> | 17 | #include <linux/sched/rt.h> |
18 | #include <linux/mm_types.h> | ||
18 | 19 | ||
19 | #include <asm/thread_info.h> | 20 | #include <asm/thread_info.h> |
20 | 21 | ||
diff --git a/include/linux/sched/mm.h b/include/linux/sched/mm.h index 1cf7941bb946..d32e3932b2e3 100644 --- a/include/linux/sched/mm.h +++ b/include/linux/sched/mm.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _LINUX_SCHED_MM_H | 2 | #define _LINUX_SCHED_MM_H |
3 | 3 | ||
4 | #include <linux/sched.h> | 4 | #include <linux/sched.h> |
5 | #include <linux/mm_types.h> | ||
5 | #include <linux/gfp.h> | 6 | #include <linux/gfp.h> |
6 | 7 | ||
7 | #endif /* _LINUX_SCHED_MM_H */ | 8 | #endif /* _LINUX_SCHED_MM_H */ |
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 109adc0e9cb9..e865d8bfb881 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c | |||
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/proc_fs.h> | 13 | #include <linux/proc_fs.h> |
14 | #include <linux/sched.h> | 14 | #include <linux/sched/mm.h> |
15 | #include <linux/seq_file.h> | 15 | #include <linux/seq_file.h> |
16 | #include <linux/kallsyms.h> | 16 | #include <linux/kallsyms.h> |
17 | #include <linux/utsname.h> | 17 | #include <linux/utsname.h> |
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 11e0ab57748a..3e88b35ac157 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra | 20 | * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <linux/sched.h> | 23 | #include <linux/sched/mm.h> |
24 | #include <linux/sched/topology.h> | 24 | #include <linux/sched/topology.h> |
25 | 25 | ||
26 | #include <linux/latencytop.h> | 26 | #include <linux/latencytop.h> |
diff --git a/kernel/signal.c b/kernel/signal.c index e6d470a5f75a..2008aa999976 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
14 | #include <linux/export.h> | 14 | #include <linux/export.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/sched.h> | 16 | #include <linux/sched/mm.h> |
17 | #include <linux/sched/user.h> | 17 | #include <linux/sched/user.h> |
18 | #include <linux/sched/debug.h> | 18 | #include <linux/sched/debug.h> |
19 | #include <linux/sched/task.h> | 19 | #include <linux/sched/task.h> |
diff --git a/lib/is_single_threaded.c b/lib/is_single_threaded.c index 9745cfffcb69..8d4678edcc0e 100644 --- a/lib/is_single_threaded.c +++ b/lib/is_single_threaded.c | |||
@@ -10,6 +10,7 @@ | |||
10 | * 2 of the Licence, or (at your option) any later version. | 10 | * 2 of the Licence, or (at your option) any later version. |
11 | */ | 11 | */ |
12 | #include <linux/sched/signal.h> | 12 | #include <linux/sched/signal.h> |
13 | #include <linux/sched/mm.h> | ||
13 | 14 | ||
14 | /* | 15 | /* |
15 | * Returns true if the task does not share ->mm with another thread/process. | 16 | * Returns true if the task does not share ->mm with another thread/process. |