sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
authorIngo Molnar <mingo@kernel.org>
Wed, 8 Feb 2017 17:51:29 +0000 (18:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:28 +0000 (08:42 +0100)
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>
60 files changed:
arch/arc/include/asm/mmu_context.h
arch/arc/kernel/troubleshoot.c
arch/arm/mach-rpc/ecard.c
arch/frv/mm/mmu-context.c
arch/m68k/sun3/mmu_emu.c
arch/powerpc/platforms/cell/spufs/context.c
drivers/android/binder.c
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/etnaviv/etnaviv_gem.c
drivers/gpu/drm/i915/i915_gem_userptr.c
drivers/infiniband/core/umem.c
drivers/infiniband/core/umem_odp.c
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/usnic/usnic_uiom.c
drivers/iommu/amd_iommu_v2.c
drivers/iommu/intel-svm.c
drivers/lguest/lguest_user.c
drivers/misc/cxl/fault.c
drivers/misc/mic/scif/scif_rma.c
drivers/oprofile/buffer_sync.c
drivers/vfio/vfio_iommu_spapr_tce.c
drivers/vfio/vfio_iommu_type1.c
drivers/vhost/vhost.c
drivers/xen/gntdev.c
fs/exec.c
fs/proc/array.c
fs/proc/base.c
fs/proc/task_mmu.c
fs/proc/task_nommu.c
fs/userfaultfd.c
include/linux/sched/mm.h [new file with mode: 0644]
kernel/cgroup/cpuset.c
kernel/events/core.c
kernel/events/uprobes.c
kernel/exit.c
kernel/fork.c
kernel/futex.c
kernel/ptrace.c
kernel/sched/sched.h
kernel/sys.c
kernel/trace/trace_output.c
kernel/tsacct.c
mm/khugepaged.c
mm/ksm.c
mm/memcontrol.c
mm/memory.c
mm/mempolicy.c
mm/migrate.c
mm/mmu_context.c
mm/mmu_notifier.c
mm/nommu.c
mm/oom_kill.c
mm/process_vm_access.c
mm/rmap.c
mm/swapfile.c
mm/util.c
virt/kvm/async_pf.c
virt/kvm/kvm_main.c

index b0b87f2447f5248b3b2bcf1e13b14a5ad85d2d44..64b5ebae1ae8bc1c6138371b3f983070c5e7b108 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <asm/arcregs.h>
 #include <asm/tlb.h>
+#include <linux/sched/mm.h>
 
 #include <asm-generic/mm_hooks.h>
 
index 82f9bc819f4a2d40f9849d88cc4631fa8f07d7a8..0c48907f56a9a91331441f6ca58354ea608f63f9 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/fs_struct.h>
 #include <linux/proc_fs.h>
 #include <linux/file.h>
+#include <linux/sched/mm.h>
+
 #include <asm/arcregs.h>
 #include <asm/irqflags.h>
 
index dc67a7fb383199ba26657d7ab9e5611031c9e20c..6b279d0377742c07e2322cb612b4ca4bf81eb733 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/interrupt.h>
 #include <linux/completion.h>
 #include <linux/reboot.h>
index 3473bde77f566e196984f054264d42795a1ae249..4031289bf2ecc596fbdd998833819b77784506d3 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/mm.h>
 #include <asm/tlbflush.h>
 
index e9d7fbe4d5ae4a3de3f201c75b83b026c059ef96..7fdc61525e0b7365ec3608dc6bffb44ad8edd784 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/bootmem.h>
 #include <linux/bitops.h>
 #include <linux/module.h>
+#include <linux/sched/mm.h>
 
 #include <asm/setup.h>
 #include <asm/traps.h>
index 3b4152faeb1fc43e53ea5c56cdade97647e7c1fb..b500b17254a00d44810b90d18a444fa9d36d1de9 100644 (file)
@@ -25,6 +25,8 @@
 #include <linux/slab.h>
 #include <linux/atomic.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
+
 #include <asm/spu.h>
 #include <asm/spu_csa.h>
 #include "spufs.h"
index 2bbcdc6fdfeec96b0c31ef43f3cf0024cfbd4a38..e33e7fbe870b36fc8289123bd7066c500bdc70a7 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/debugfs.h>
 #include <linux/rbtree.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/seq_file.h>
 #include <linux/uaccess.h>
 #include <linux/vmalloc.h>
index ca5f2aa7232da7e5da0a6f3b19da1af4b00cb0a4..84d1ffd1eef950480804f2bba8bc4ceabcef1998 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/mutex.h>
 #include <linux/log2.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/slab.h>
 #include <linux/amd-iommu.h>
 #include <linux/notifier.h>
index e78f1406885d102af012979e00a1a7a35ee61017..ae2882b64b8253d51c755c33a5e4c9f88404d918 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <linux/spinlock.h>
 #include <linux/shmem_fs.h>
+#include <linux/sched/mm.h>
 
 #include "etnaviv_drv.h"
 #include "etnaviv_gem.h"
index 0115989e324a20c58ef4827719abd43239e78646..22b46398831e09653b7d4621da08cdc1ff03a109 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/mmu_notifier.h>
 #include <linux/mempolicy.h>
 #include <linux/swap.h>
+#include <linux/sched/mm.h>
 
 struct i915_mm_struct {
        struct mm_struct *mm;
index 446b56a5260b73f1994355403411d3c971a06e25..d525b1a2986a1c85b135a6b52ac020bafac99236 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/mm.h>
 #include <linux/dma-mapping.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/export.h>
 #include <linux/hugetlb.h>
 #include <linux/slab.h>
index f2fc0431512defe20e393c679a59b54916c3df47..7279f259494ffcf3d435380496f77b21cd11db3d 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/pid.h>
 #include <linux/slab.h>
 #include <linux/export.h>
index 3b19c16a9e45783c907359af11f68bb91c08997c..f78c739b330a45cfcb99a7a14d9c3e6d2f72c549 100644 (file)
@@ -48,6 +48,7 @@
 #include <linux/cdev.h>
 #include <linux/vmalloc.h>
 #include <linux/io.h>
+#include <linux/sched/mm.h>
 
 #include <rdma/ib.h>
 
index 88608906ce2503987e4c100506d698a3da89a65c..56da8f0d71bbc77f6db53b9024c85af6f419a4bd 100644 (file)
@@ -39,6 +39,8 @@
 #include <linux/inetdevice.h>
 #include <linux/rtnetlink.h>
 #include <linux/if_vlan.h>
+#include <linux/sched/mm.h>
+
 #include <net/ipv6.h>
 #include <net/addrconf.h>
 #include <net/devlink.h>
index 5b3355268725b8fd07917d996a612db4584ff7c1..4b1ec3ff152ad9a84a60da4fb21df76d3e332a66 100644 (file)
@@ -41,6 +41,7 @@
 #include <asm/pat.h>
 #endif
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/delay.h>
 #include <rdma/ib_user_verbs.h>
 #include <rdma/ib_addr.h>
index 1ccee6ea5bc3092f196689c4481b21d9f27b796c..ba868be5af2e91fa41e8054bda3422d75f519b71 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/mm.h>
 #include <linux/dma-mapping.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/iommu.h>
 #include <linux/workqueue.h>
index f8ed8c95b68537820c92be07df1bf9e28c19db32..063343909b0d12f31fac8682058b2eaed4ad2b91 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/profile.h>
 #include <linux/module.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/iommu.h>
 #include <linux/wait.h>
 #include <linux/pci.h>
index 51f2b228723f2c00d09512f8c73dc94343a6f58d..23c427602c55ba10a546737edabb1bfb24497304 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/intel-iommu.h>
 #include <linux/mmu_notifier.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/slab.h>
 #include <linux/intel-svm.h>
 #include <linux/rculist.h>
index 30c60687d277c47efb20ea0a1bba4826444af09d..1a6787bc9386a67a57c4c42fc5a00d241f5bcda1 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/miscdevice.h>
 #include <linux/fs.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/file.h>
 #include <linux/slab.h>
 #include <linux/export.h>
index 377e650a2a1dc3464fa0eb3f6fdf99493a15f32c..e33011e3e7e26a5cb3521a3f8ea9b2848fc7b825 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/workqueue.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/pid.h>
 #include <linux/mm.h>
 #include <linux/moduleparam.h>
index f806a4471eb913f388042886de29ec8de996cbf5..d0e9c60f944e16b06aee8160ece94e0c44f25d5f 100644 (file)
@@ -17,6 +17,8 @@
  */
 #include <linux/dma_remapping.h>
 #include <linux/pagemap.h>
+#include <linux/sched/mm.h>
+
 #include "scif_main.h"
 #include "scif_map.h"
 
index 642478d35e99a5c023a03a2d8f9593c8e4fbbde2..eb0c35994b5401dd269275a8c4b5361ebb4b2aea 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/fs.h>
 #include <linux/oprofile.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/gfp.h>
 
 #include "oprofile_stats.h"
index 59b3f62a2d64ebd85be990630e09a48c7c7f2f1c..185d50ee1b1242a1bf4468db0d7024b036231fb7 100644 (file)
@@ -20,6 +20,8 @@
 #include <linux/err.h>
 #include <linux/vfio.h>
 #include <linux/vmalloc.h>
+#include <linux/sched/mm.h>
+
 #include <asm/iommu.h>
 #include <asm/tce.h>
 #include <asm/mmu_context.h>
index bd6f293c4ebd59b5f283ebc1193767c982e1f1ef..7e94c7fc90ae2d4c516a92058d69901ded88aa4d 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/mm.h>
 #include <linux/rbtree.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
 #include <linux/vfio.h>
index 4269e621e254ab7acc38c81f2aafe1775e9dbd81..4a00140a7624156b02973825bbf740de582631fe 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/cgroup.h>
 #include <linux/module.h>
 #include <linux/sort.h>
+#include <linux/sched/mm.h>
 #include <linux/interval_tree_generic.h>
 
 #include "vhost.h"
index 2ef2b61b69dfe0c644905fa4991871a2d668df7f..c77a0751a31173344de0c02c3f70d18ec259ca63 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/types.h>
 #include <linux/uaccess.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/spinlock.h>
 #include <linux/slab.h>
 #include <linux/highmem.h>
index e595e1529581344907dfae0ed9468c76fe0692a2..8929da96cca1704ba0d5348f0c2ba73c185d0b96 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -32,6 +32,7 @@
 #include <linux/swap.h>
 #include <linux/string.h>
 #include <linux/init.h>
+#include <linux/sched/mm.h>
 #include <linux/pagemap.h>
 #include <linux/perf_event.h>
 #include <linux/highmem.h>
index fe12b519d09b53fb17e95969935388ccafaef51a..61bea3a4ecc5e68239022f8c3f6f02586cb387f2 100644 (file)
@@ -60,6 +60,7 @@
 #include <linux/tty.h>
 #include <linux/string.h>
 #include <linux/mman.h>
+#include <linux/sched/mm.h>
 #include <linux/proc_fs.h>
 #include <linux/ioport.h>
 #include <linux/uaccess.h>
index 27af4ea315a300019bd47bd4e06c8c8eee154b1d..9efe12376af1ba36db7fb9ba1c8ac79267d72375 100644 (file)
@@ -86,6 +86,7 @@
 #include <linux/fs_struct.h>
 #include <linux/slab.h>
 #include <linux/sched/autogroup.h>
+#include <linux/sched/mm.h>
 #include <linux/flex_array.h>
 #include <linux/posix-timers.h>
 #ifdef CONFIG_HARDWALL
index ee3efb229ef6a61839ad04f70122d7be286ca730..f08bd31c1081cc0536602db9d865f4bf491440c9 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/mempolicy.h>
 #include <linux/rmap.h>
 #include <linux/swap.h>
+#include <linux/sched/mm.h>
 #include <linux/swapops.h>
 #include <linux/mmu_notifier.h>
 #include <linux/page_idle.h>
index 1ef97cfcf4228737dcf02a74efea47bb8b75c574..23266694db117155f6e23284fecbf69800cecb09 100644 (file)
@@ -7,6 +7,8 @@
 #include <linux/ptrace.h>
 #include <linux/slab.h>
 #include <linux/seq_file.h>
+#include <linux/sched/mm.h>
+
 #include "internal.h"
 
 /*
index 3c421d06a18e6ee1a7fde0d09030c9f7306cb989..18d12bfff7709c331de37427b87835b0d03cc962 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/list.h>
 #include <linux/hashtable.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/mm.h>
 #include <linux/poll.h>
 #include <linux/slab.h>
diff --git a/include/linux/sched/mm.h b/include/linux/sched/mm.h
new file mode 100644 (file)
index 0000000..a7adba1
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _LINUX_SCHED_MM_H
+#define _LINUX_SCHED_MM_H
+
+#include <linux/sched.h>
+
+#endif /* _LINUX_SCHED_MM_H */
index b3088886cd375b71fe1ead5395e41076f137392c..a5c46db2855c4d9f061fd71fa87f63e697f4331a 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/proc_fs.h>
 #include <linux/rcupdate.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/seq_file.h>
 #include <linux/security.h>
 #include <linux/slab.h>
index 42fe16a84f979bfb66fbc6f2877e31d30362f858..6f41548f2e320a98182f4fe4b10700bcab7e6b86 100644 (file)
@@ -47,6 +47,7 @@
 #include <linux/namei.h>
 #include <linux/parser.h>
 #include <linux/sched/clock.h>
+#include <linux/sched/mm.h>
 
 #include "internal.h"
 
index d630f8ac4d2f2163292a38112b1272b5afc5358b..62f2dbd13efc1e3207cae8e2db3f990e1803b74a 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/pagemap.h>     /* read_mapping_page */
 #include <linux/slab.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/export.h>
 #include <linux/rmap.h>                /* anon_vma_prepare */
 #include <linux/mmu_notifier.h>        /* set_pte_at_notify */
index 9c0b92833fbbaca5fa202cc0b8fea24153343dcf..48649ccbb649d3d0b5391eae760047e2f2a83db3 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/sched/autogroup.h>
+#include <linux/sched/mm.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/capability.h>
index 234f4bfb8efd03b5eab94d07c15ad07cb82215a3..1875468e2a811a73b4af208860dc4b400edbe977 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <linux/slab.h>
 #include <linux/sched/autogroup.h>
+#include <linux/sched/mm.h>
 #include <linux/init.h>
 #include <linux/unistd.h>
 #include <linux/module.h>
index 8ddcf9ea953c982a3e77cf4e09cf4a57a73dbac0..229a744b1781be2e4fccc1b5c290bd246d8b8694 100644 (file)
@@ -62,6 +62,7 @@
 #include <linux/ptrace.h>
 #include <linux/sched/rt.h>
 #include <linux/sched/wake_q.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/freezer.h>
 #include <linux/bootmem.h>
index 49ba7c1ade9d074b814105fb648f33b0ce95f061..6fe5a2897912424ec59ec99d090b8f87d91976d1 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/capability.h>
 #include <linux/export.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/errno.h>
 #include <linux/mm.h>
 #include <linux/highmem.h>
index 4d386461f13a0de791602637f76e34dafbbe5a9c..e2307a6c29f13d61aa64f4a8442d4c30a10909fb 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/sched/rt.h>
 #include <linux/sched/clock.h>
 #include <linux/sched/wake_q.h>
+#include <linux/sched/mm.h>
 #include <linux/u64_stats_sync.h>
 #include <linux/sched/deadline.h>
 #include <linux/kernel_stat.h>
index cfe82ae62423eda545eeea283f54f37859f81800..dc71ec1e196724f06d4a9404329855f4e29f2a9d 100644 (file)
@@ -51,6 +51,7 @@
 #include <linux/sched.h>
 #include <linux/sched/autogroup.h>
 #include <linux/sched/loadavg.h>
+#include <linux/sched/mm.h>
 #include <linux/rcupdate.h>
 #include <linux/uidgid.h>
 #include <linux/cred.h>
index 107afca9764950915d2266d87cf6963b5ff93ec6..02a4aeb22c4785cc808a7906c970dfa420796cbe 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/mutex.h>
 #include <linux/ftrace.h>
 #include <linux/sched/clock.h>
+#include <linux/sched/mm.h>
 
 #include "trace_output.h"
 
index 5c21f053505655a8723e8fa85bc78ae3e2d281eb..571a2d3821d85706945c61fb0a186ebbf4c392cf 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <linux/kernel.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/tsacct_kern.h>
 #include <linux/acct.h>
 #include <linux/jiffies.h>
index 34bce5c308e3b1ff005fb482fd73b10337c324a8..212a2afe88307b21821e6a515e493d8faccbaaba 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <linux/mm.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/mmu_notifier.h>
 #include <linux/rmap.h>
 #include <linux/swap.h>
index 520e4c37fec738c7cd72215486fa524fbee9e056..5632c9d0245786bb1da748232e59ca191d874ac2 100644 (file)
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -19,6 +19,7 @@
 #include <linux/fs.h>
 #include <linux/mman.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/rwsem.h>
 #include <linux/pagemap.h>
 #include <linux/rmap.h>
index 45867e439d31d7f9836769463cad10b170180558..c52ec893e241cf6b52764797f6aea5ed56219e23 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/memcontrol.h>
 #include <linux/cgroup.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/shmem_fs.h>
 #include <linux/hugetlb.h>
 #include <linux/pagemap.h>
index 14fc0b40f0bb6cf3ee50cfff8e7db865ad442cdd..b0495ec74d29a75feaccf2208c296cec22c323d2 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <linux/kernel_stat.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/mman.h>
 #include <linux/swap.h>
index 1e7873e40c9a16e922d4800e6dc41486eee23540..90892416ed75f93ff065fedda1e5b33f08e4c1eb 100644 (file)
@@ -73,6 +73,7 @@
 #include <linux/hugetlb.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/nodemask.h>
 #include <linux/cpuset.h>
 #include <linux/slab.h>
index 2c63ac06791bbdf0e382e669812fcca67bf3cc55..9a0897a14d37be3d7759d577f98060fa75c7be0f 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/mmu_notifier.h>
 #include <linux/page_idle.h>
 #include <linux/page_owner.h>
+#include <linux/sched/mm.h>
 
 #include <asm/tlbflush.h>
 
index daf67bb02b4af8471cb64d9296899da5c9b116c7..8888b124a386c5307fbb63a5380de4a8195e0919 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <linux/mm.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/mmu_context.h>
 #include <linux/export.h>
 
index 32bc9f2ff7eb9340c099e29479a52996bb0f6ff4..a7652acd2ab93c2e290f31fbe80e36d157abb609 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/srcu.h>
 #include <linux/rcupdate.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/slab.h>
 
 /* global SRCU for all MMs */
index aae06e854552dd765231e204039e4ba97de46204..79abed514a4be9d8e37cd214895c61e10c8c2ac6 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <linux/export.h>
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/vmacache.h>
 #include <linux/mman.h>
 #include <linux/swap.h>
index 51c091849dcb65057d2e7443e0d01fc6856202c0..d2893661869893c4231f2a839c9a930773d44cda 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/err.h>
 #include <linux/gfp.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/swap.h>
 #include <linux/timex.h>
 #include <linux/jiffies.h>
index 84d0c7eada2b50f2828033334c5a10df7a6a90a5..8973cd231ecee9c194376045cf7d9c2054d2a4b7 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/mm.h>
 #include <linux/uio.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/highmem.h>
 #include <linux/ptrace.h>
 #include <linux/slab.h>
index 8774791e28099be82b7f4b7062c45600e8aed4ff..0367a0506667ce2efde9efe8a76d658895896764 100644 (file)
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -46,6 +46,7 @@
  */
 
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/pagemap.h>
 #include <linux/swap.h>
 #include <linux/swapops.h>
index fadc6a1c0da0b28e45b786ae5466ef60c3ec88f1..ff2bf3f61b14192299795b3272a0dc4d129c7afe 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <linux/mm.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/mman.h>
 #include <linux/slab.h>
index b8f538863b5a19a83332f962ab3766004b0ef4bb..14f4e13323e2368e364fb298781a9ff29cbb324e 100644 (file)
--- a/mm/util.c
+++ b/mm/util.c
@@ -5,6 +5,7 @@
 #include <linux/export.h>
 #include <linux/err.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/security.h>
 #include <linux/swap.h>
 #include <linux/swapops.h>
index 2366177172f67cd3480dd5f11b62ce412d9bf567..bb298a200cd3f212d13dd509303eef211b9346de 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/mmu_context.h>
+#include <linux/sched/mm.h>
 
 #include "async_pf.h"
 #include <trace/events/kvm.h>
index 35f71409d9ee4dc1510e82ad2bff8726e0664c95..dd5de09bf36251417a579be4f5c0cce2d1927c3b 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/syscore_ops.h>
 #include <linux/cpu.h>
 #include <linux/sched.h>
+#include <linux/sched/mm.h>
 #include <linux/cpumask.h>
 #include <linux/smp.h>
 #include <linux/anon_inodes.h>