diff options
author | Liam Howlett <liam.howlett@oracle.com> | 2021-07-01 04:52:17 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-07-01 06:47:30 +0300 |
commit | db1d9152c91acf2fef2eb16718a0aafee60dde30 (patch) | |
tree | a91d60893a8b0f8885d3d0b03dea1511082aba78 /mm/nommu.c | |
parent | 176056fd740ecaa9873facfc257f8396804754ce (diff) | |
download | linux-db1d9152c91acf2fef2eb16718a0aafee60dde30.tar.xz |
mm/nommu: unexport do_munmap()
do_munmap() does not take the mmap_write_lock(). vm_munmap() should be
used instead.
Link: https://lkml.kernel.org/r/20210604194002.648037-1-Liam.Howlett@Oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r-- | mm/nommu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 0997ca38c2bd..3a93d4054810 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -1501,7 +1501,6 @@ erase_whole_vma: delete_vma(mm, vma); return 0; } -EXPORT_SYMBOL(do_munmap); int vm_munmap(unsigned long addr, size_t len) { |