diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-02-08 12:51:29 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-03-02 02:42:28 -0500 |
commit | 6e84f31522f931027bf695752087ece278c10d3f (patch) | |
tree | 77c09a0bb2878e9725539f310f43dd38137c5d97 /kernel/events | |
parent | 4eb5aaa3af8a54e5e9bac90e2b42bbab1f1ee5a3 (diff) |
sched/headers: Prepare for new header dependencies before moving code to <linux/sched/mm.h>
We are going to split <linux/sched/mm.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/mm.h> file that just
maps to <linux/sched.h> to make this patch obviously correct and
bisectable.
The APIs that are going to be moved first are:
mm_alloc()
__mmdrop()
mmdrop()
mmdrop_async_fn()
mmdrop_async()
mmget_not_zero()
mmput()
mmput_async()
get_task_mm()
mm_access()
mm_release()
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>
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 1 | ||||
-rw-r--r-- | kernel/events/uprobes.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 42fe16a84f97..6f41548f2e32 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include <linux/namei.h> | 47 | #include <linux/namei.h> |
48 | #include <linux/parser.h> | 48 | #include <linux/parser.h> |
49 | #include <linux/sched/clock.h> | 49 | #include <linux/sched/clock.h> |
50 | #include <linux/sched/mm.h> | ||
50 | 51 | ||
51 | #include "internal.h" | 52 | #include "internal.h" |
52 | 53 | ||
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index d630f8ac4d2f..62f2dbd13efc 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/pagemap.h> /* read_mapping_page */ | 27 | #include <linux/pagemap.h> /* read_mapping_page */ |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/sched.h> | 29 | #include <linux/sched.h> |
30 | #include <linux/sched/mm.h> | ||
30 | #include <linux/export.h> | 31 | #include <linux/export.h> |
31 | #include <linux/rmap.h> /* anon_vma_prepare */ | 32 | #include <linux/rmap.h> /* anon_vma_prepare */ |
32 | #include <linux/mmu_notifier.h> /* set_pte_at_notify */ | 33 | #include <linux/mmu_notifier.h> /* set_pte_at_notify */ |