projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb25a77
)
mm: nommu: kill arch_get_unmapped_area()
author
Kefeng Wang
<wangkefeng.wang@huawei.com>
Fri, 5 Nov 2021 20:43:50 +0000
(13:43 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:41 +0000
(13:30 -0700)
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>
mm/nommu.c
patch
|
blob
|
history
diff --git
a/mm/nommu.c
b/mm/nommu.c
index 02d2427b8f9e87140c0ec98ff4535caa398af6c2..8943dc0e2132909ea3dd5034c4d57fcf04f1ae85 100644
(file)
--- 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();