Add EXPORT_SYMBOL to unmapped_area() and unmapped_area_topdown(). So they are usable from modules. Signed-off-by: Hareesh Gundu <hareeshg@xxxxxxxxxxxxxx> --- mm/mmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/mmap.c b/mm/mmap.c index 924839f..aba4f51 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1882,6 +1882,7 @@ unsigned long unmapped_area(struct vm_unmapped_area_info *info) VM_BUG_ON(gap_start + info->length > gap_end); return gap_start; } +EXPORT_SYMBOL(unmapped_area); unsigned long unmapped_area_topdown(struct vm_unmapped_area_info *info) { @@ -1981,6 +1982,7 @@ unsigned long unmapped_area_topdown(struct vm_unmapped_area_info *info) VM_BUG_ON(gap_end < gap_start); return gap_end; } +EXPORT_SYMBOL(unmapped_area_topdown); /* Get an address range which is currently unmapped. * For shmat() with addr=0. -- 1.9.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>