From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: <linux-mm@kvack.org>, Andrew Morton <akpm@linux-foundation.org>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Subject: [PATCH] mm: nommu: kill arch_get_unmapped_area()
Date: Fri, 10 Sep 2021 14:19:06 +0800 [thread overview]
Message-ID: <20210910061906.36299-1-wangkefeng.wang@huawei.com> (raw)
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
reply other threads:[~2021-09-10 6:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210910061906.36299-1-wangkefeng.wang@huawei.com \
--to=wangkefeng.wang@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox