[PATCH v4 04/14] mm: Remove export for get_unmapped_area()

Rick Edgecombe posted 14 patches 1 year, 10 months ago
[PATCH v4 04/14] mm: Remove export for get_unmapped_area()
Posted by Rick Edgecombe 1 year, 10 months ago
The mm/mmap.c function get_unmapped_area() is not used from any modules,
so it doesn't need to be exported. Remove the export.

Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
---
v4:
 - New patch split from "mm: Use get_unmapped_area_vmflags()"
   (Christophe Leroy)
---
 mm/mmap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mm/mmap.c b/mm/mmap.c
index 2bd7580b8f0b..d160e88b1b1e 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1887,8 +1887,6 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
 	return error ? error : addr;
 }
 
-EXPORT_SYMBOL(get_unmapped_area);
-
 unsigned long
 mm_get_unmapped_area(struct mm_struct *mm, struct file *file,
 		     unsigned long addr, unsigned long len,
-- 
2.34.1