DORMANTno replies

[PATCH] mm: nommu: kill arch_get_unmapped_area()

From: Kefeng Wang <hidden>
Date: 2021-09-10 06:15:32
Subsystem: memory management, memory mapping, the rest · Maintainers: Andrew Morton, Liam R. Howlett, Lorenzo Stoakes, Linus Torvalds

When nommu, the arch_get_unmapped_area() will not be called, just kill it.

Signed-off-by: Kefeng Wang <redacted>
---
 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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help