Skip to contentSkip to conversation

mm: nommu: kill arch_get_unmapped_area()

PATCH Applied Kefeng Wang 1 participant 1 message Sep 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: nommu: kill arch_get_unmapped_area()

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

---
 mm/nommu.c | 6 ------
 1 file changed, 6 deletions(-)
mm/nommu.c +0 -6
index 9d0ad98f838c..c1cc36768757 100644
@@ -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();
Signature · 1 line
2.26.2