sched/headers: Prepare for new header dependencies before moving more code to <linux...
authorIngo Molnar <mingo@kernel.org>
Wed, 8 Feb 2017 17:51:31 +0000 (18:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:30 +0000 (08:42 +0100)
We are going to split more MM APIs out of <linux/sched.h>, which
will have to be picked up from a couple of .c files.

The APIs that we are going to move are:

  arch_pick_mmap_layout()
  arch_get_unmapped_area()
  arch_get_unmapped_area_topdown()
  mm_update_next_owner()

Include the 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>
22 files changed:
arch/alpha/kernel/osf_sys.c
arch/arc/mm/mmap.c
arch/arm/mm/mmap.c
arch/arm64/mm/mmap.c
arch/frv/mm/elf-fdpic.c
arch/ia64/kernel/sys_ia64.c
arch/mips/mm/mmap.c
arch/parisc/kernel/cache.c
arch/parisc/kernel/sys_parisc.c
arch/parisc/mm/hugetlbpage.c
arch/powerpc/mm/mmap.c
arch/s390/mm/mmap.c
arch/sh/mm/mmap.c
arch/sparc/kernel/sys_sparc_32.c
arch/sparc/kernel/sys_sparc_64.c
arch/sparc/mm/hugetlbpage.c
arch/tile/mm/hugetlbpage.c
arch/tile/mm/mmap.c
arch/x86/kernel/sys_x86_64.c
arch/x86/mm/hugetlbpage.c
arch/x86/mm/mmap.c
arch/xtensa/kernel/syscall.c

index 568ca29f2ad90f72571734aa2188fd5076e1afa0..3b9b2a382ba26893825b6c43d9460c1cf8524584 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <linux/errno.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/smp.h>
index 2e06d56e987bf84c773b01bbfa6a7b4af1ac6fc9..3e25e8d6486ba258c8fa07ae52214af5e845decb 100644 (file)
@@ -13,7 +13,8 @@
 #include <linux/fs.h>
 #include <linux/mm.h>
 #include <linux/mman.h>
-#include <linux/sched.h>
+#include <linux/sched/mm.h>
+
 #include <asm/cacheflush.h>
 
 #define COLOUR_ALIGN(addr, pgoff)                      \
index d448f9cd7715408942e7956e21e382cfb90eb2de..2239fde10b808d7985bba83f42984dda35871901 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/mman.h>
 #include <linux/shm.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/io.h>
 #include <linux/personality.h>
 #include <linux/random.h>
index 1e0a2650c88b59e2478fc4abcabd7d60bcbf2230..7b0d55756eb1c2b5cdae484cf7d79da7c0048f40 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/export.h>
 #include <linux/shm.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/io.h>
 #include <linux/personality.h>
 #include <linux/random.h>
index 836f14707a627f156343154f359ac1f7758e9fd4..da82c25301e7774bcbe3058129b574c7496efba8 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/mm.h>
 #include <linux/fs.h>
 #include <linux/elf-fdpic.h>
index a09c12230bc507f1825f563336d5b8b614dbf084..ce4cc60d519bb094a60ebb50edb82f3e78e99c13 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/mm.h>
 #include <linux/mman.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/shm.h>
 #include <linux/file.h>                /* doh, must come after sched.h... */
 #include <linux/smp.h>
index 374d71e61ef65b27a436d3c803b28e5295ec778d..64dd8bdd92c3390ba0c5df29e57e955293dbac9a 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/personality.h>
 #include <linux/random.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 
 unsigned long shm_align_mask = PAGE_SIZE - 1;  /* Sane caches */
 EXPORT_SYMBOL(shm_align_mask);
index 977f0a4f5ecf2cffec9f147d8999456ed839c01c..7820b864de1a6040cc82e83492bd954209642edf 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/seq_file.h>
 #include <linux/pagemap.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <asm/pdc.h>
 #include <asm/cache.h>
 #include <asm/cacheflush.h>
index ce07cd3f250729327ddc96f72821034810eab694..e5288638a1d9ad713c03fa4fc0d439efd012c470 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/mm.h>
 #include <linux/mman.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/shm.h>
 #include <linux/syscalls.h>
 #include <linux/utsname.h>
index 5d6eea925cf4ec979e906b118a682f318a199f01..aa50ac090e9b9d50648843cd2f85bae1ec7d045d 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/fs.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/pagemap.h>
 #include <linux/sysctl.h>
index 8013861aeaa74257f6b346aca90618c54f6c9b6b..a5d9ef59debe25a4920c71ddf25ca6f09202220c 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/mm.h>
 #include <linux/random.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/elf-randomize.h>
 #include <linux/security.h>
 #include <linux/mman.h>
index 5ea09403bb878bbe08b7c2ac16eb0c276c303dcb..50618614881f33451fbad665df4893b0ae97d046 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/mm.h>
 #include <linux/mman.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/random.h>
 #include <linux/compat.h>
 #include <linux/security.h>
index 6777177807c26f5d6630ec48535bb4f7d5eba0e2..08e7af0be4a77b021ebc1b9736a93748cb2c5b5d 100644 (file)
@@ -9,6 +9,7 @@
  */
 #include <linux/io.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/mman.h>
 #include <linux/module.h>
 #include <asm/page.h>
index ae49639a484e485c9cb78372b9e6ed4ffad57f46..ff3573059936a9224b7fba9febffa986195dff65 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/mm.h>
 #include <linux/fs.h>
 #include <linux/file.h>
index 54d3999d8119373364d62bf8fd00a791334a8ee2..c521ee2770836a25956c9dce6759e8c1720818c4 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/fs.h>
 #include <linux/file.h>
 #include <linux/mm.h>
index e98a3f2e8f0f4839c30a61c8bf583d0753a6219c..323bc6b6e3ad0eceb0ea4cdb6a1cb6da898227b8 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <linux/fs.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/pagemap.h>
 #include <linux/sysctl.h>
index 77ceaa343fcef10956b73222f7033031035c3897..cb10153b5c9fb4307b92359a8118be91895715db 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/pagemap.h>
 #include <linux/slab.h>
index 377e312dc27eda5492c4547de535a2fe53fd8c57..8ab28167c44b12c7d7e9be37eb715a9c1b351157 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/random.h>
 #include <linux/limits.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <linux/mman.h>
 #include <linux/compat.h>
 
index a55ed63b9f91b0d45dbb476a22af9a19c4ab5fc8..50215a4b9347441deb5bb76eb0b5870fc0d60273 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/errno.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/syscalls.h>
 #include <linux/mm.h>
 #include <linux/fs.h>
index 2ae8584b44c73d7c93b30b80ca643109f6e5bcf5..c5066a260803d4b6b3a91ef56df9220be57db539 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/pagemap.h>
 #include <linux/err.h>
index 5eabf34008f1cfce00448d3c340928a844c8f203..7940166c799b787f1c9b01a08ce8920365b05cad 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/random.h>
 #include <linux/limits.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 #include <asm/elf.h>
 
 struct va_alignment __read_mostly va_align = {
index d3fd100dffc9a03e821ccede4aa2b26dfd95215b..06937928cb72dc1ac66d1bb18543d49daaf511ec 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/file.h>
 #include <linux/fs.h>
 #include <linux/mman.h>
+#include <linux/sched/mm.h>
 #include <linux/shm.h>
 
 typedef void (*syscall_t)(void);