From db1d9152c91acf2fef2eb16718a0aafee60dde30 Mon Sep 17 00:00:00 2001 From: Liam Howlett Date: Wed, 30 Jun 2021 18:52:17 -0700 Subject: 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 Reviewed-by: Andrew Morton Reviewed-by: Matthew Wilcox (Oracle) Reviewed-by: David Hildenbrand Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/nommu.c | 1 - 1 file changed, 1 deletion(-) (limited to 'mm/nommu.c') 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) { -- cgit v1.2.3