Skip to content

Commit 589ee62

Browse files
committed
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>
1 parent 2e58f17 commit 589ee62

89 files changed

Lines changed: 125 additions & 25 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arch/alpha/include/asm/a.out-core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#ifdef __KERNEL__
1616

1717
#include <linux/user.h>
18+
#include <linux/mm_types.h>
1819

1920
/*
2021
* Fill in the user structure for an ECOFF core dump.

arch/alpha/include/asm/mmu_context.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* Copyright (C) 1996, Linus Torvalds
88
*/
99

10+
#include <linux/mm_types.h>
11+
1012
#include <asm/machvec.h>
1113
#include <asm/compiler.h>
1214
#include <asm-generic/mm_hooks.h>

arch/arc/mm/tlb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353

5454
#include <linux/module.h>
5555
#include <linux/bug.h>
56+
#include <linux/mm_types.h>
57+
5658
#include <asm/arcregs.h>
5759
#include <asm/setup.h>
5860
#include <asm/mmu_context.h>

arch/arm/include/asm/mmu_context.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
#include <linux/compiler.h>
1717
#include <linux/sched.h>
18+
#include <linux/mm_types.h>
1819
#include <linux/preempt.h>
20+
1921
#include <asm/cacheflush.h>
2022
#include <asm/cachetype.h>
2123
#include <asm/proc-fns.h>

arch/arm/include/asm/tlbflush.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#ifndef _ASMARM_TLBFLUSH_H
1111
#define _ASMARM_TLBFLUSH_H
1212

13+
#ifndef __ASSEMBLY__
14+
# include <linux/mm_types.h>
15+
#endif
16+
1317
#ifdef CONFIG_MMU
1418

1519
#include <asm/glue.h>
@@ -644,9 +648,6 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
644648
#elif defined(CONFIG_SMP) /* !CONFIG_MMU */
645649

646650
#ifndef __ASSEMBLY__
647-
648-
#include <linux/mm_types.h>
649-
650651
static inline void local_flush_tlb_all(void) { }
651652
static inline void local_flush_tlb_mm(struct mm_struct *mm) { }
652653
static inline void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr) { }

arch/arm/kernel/suspend.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <linux/init.h>
22
#include <linux/slab.h>
3+
#include <linux/mm_types.h>
34

45
#include <asm/cacheflush.h>
56
#include <asm/idmap.h>

arch/arm/kernel/swp_emulate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/proc_fs.h>
2424
#include <linux/seq_file.h>
2525
#include <linux/sched.h>
26+
#include <linux/sched/mm.h>
2627
#include <linux/syscalls.h>
2728
#include <linux/perf_event.h>
2829

arch/arm/mm/idmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <linux/module.h>
22
#include <linux/kernel.h>
33
#include <linux/slab.h>
4+
#include <linux/mm_types.h>
45

56
#include <asm/cputype.h>
67
#include <asm/idmap.h>

arch/arm64/include/asm/mmu_context.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/compiler.h>
2727
#include <linux/sched.h>
2828
#include <linux/sched/hotplug.h>
29+
#include <linux/mm_types.h>
2930

3031
#include <asm/cacheflush.h>
3132
#include <asm/cpufeature.h>

arch/arm64/kernel/traps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <linux/sched/debug.h>
3434
#include <linux/sched/task_stack.h>
3535
#include <linux/syscalls.h>
36+
#include <linux/mm_types.h>
3637

3738
#include <asm/atomic.h>
3839
#include <asm/bug.h>

0 commit comments

Comments
 (0)