summaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2021-11-05 21:43:50 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-06 21:30:41 +0100
commit916caa127cb2239989b2ec45e4288db61de01ed9 (patch)
tree4fb988fc101d192dc8deabe23a4b133156033393 /mm/nommu.c
parentmm/readahead.c: fix incorrect comments for get_init_ra_size (diff)
downloadlinux-916caa127cb2239989b2ec45e4288db61de01ed9.tar.xz
linux-916caa127cb2239989b2ec45e4288db61de01ed9.zip
mm: nommu: kill arch_get_unmapped_area()
When nommu, the arch_get_unmapped_area() will not be called, just kill it. Link: https://lkml.kernel.org/r/20210910061906.36299-1-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 02d2427b8f9e..8943dc0e2132 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -1639,12 +1639,6 @@ int remap_vmalloc_range(struct vm_area_struct *vma, void *addr,
}
EXPORT_SYMBOL(remap_vmalloc_range);
-unsigned long arch_get_unmapped_area(struct file *file, unsigned long addr,
- unsigned long len, unsigned long pgoff, unsigned long flags)
-{
- return -ENOMEM;
-}
-
vm_fault_t filemap_fault(struct vm_fault *vmf)
{
BUG();