Skip to content

Commit

Permalink
mm: nommu: kill arch_get_unmapped_area()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kefeng Wang authored and Linus Torvalds committed Nov 6, 2021
1 parent fb25a77 commit 916caa1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 916caa1

Please sign in to comment.