Skip to contentSkip to conversation

mm: Export unmapped_area*() functions

PATCH In review Hareesh Gundu 2 participants 4 messages Dec 5, 2017 – Dec 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: Export unmapped_area*() functions

Add EXPORT_SYMBOL to unmapped_area()
and unmapped_area_topdown(). So they
are usable from modules.

---
 mm/mmap.c | 2 ++
 1 file changed, 2 insertions(+)
mm/mmap.c +2 -0
index 924839f..aba4f51 100644
@@ -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.
Signature · 7 lines
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#2 lore raw
Quoted 4 lines · Christoph Hellwig
Quoted 3 lines · Hareesh Gundu

Add EXPORT_SYMBOL to unmapped_area()
and unmapped_area_topdown(). So they
are usable from modules.

This change is not for in-tree kernel module. It's for modules built outside of kernel tree modules.

Quoted 2 lines

Please send this along with the actual modules.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#3 lore raw
Quoted 7 lines · Hareesh Gundu
Quoted 4 lines · Christoph Hellwig
Quoted 3 lines · Hareesh Gundu

Add EXPORT_SYMBOL to unmapped_area()
and unmapped_area_topdown(). So they
are usable from modules.

This change is not for in-tree kernel module. It's for modules built outside of kernel tree modules.

Please prepare the modules for kernel inclusion first, and then we can understand what you are doing and propose the right solution.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>