* [PATCH] mm: nommu: kill arch_get_unmapped_area()
@ 2021-09-10 6:19 Kefeng Wang
0 siblings, 0 replies; only message in thread
From: Kefeng Wang @ 2021-09-10 6:19 UTC (permalink / raw)
To: linux-mm, Andrew Morton; +Cc: Kefeng Wang
When nommu, the arch_get_unmapped_area() will not be called, just kill it.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
mm/nommu.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/mm/nommu.c b/mm/nommu.c
index 9d0ad98f838c..c1cc36768757 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -1641,12 +1641,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();
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-10 6:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 6:19 [PATCH] mm: nommu: kill arch_get_unmapped_area() Kefeng Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox