linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: Export unmapped_area*() functions
@ 2017-12-05 15:15 Hareesh Gundu
  2017-12-05 15:29 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Hareesh Gundu @ 2017-12-05 15:15 UTC (permalink / raw)
  To: Andrew Morton, Christoph Hellwig, Linus Torvalds, Oleg Nesterov
  Cc: linux-mm, hareeshg

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

Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
---
 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@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: Export unmapped_area*() functions
  2017-12-05 15:15 [PATCH] mm: Export unmapped_area*() functions Hareesh Gundu
@ 2017-12-05 15:29 ` Christoph Hellwig
  2017-12-06 15:30   ` Hareesh Gundu
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2017-12-05 15:29 UTC (permalink / raw)
  To: Hareesh Gundu
  Cc: Andrew Morton, Christoph Hellwig, Linus Torvalds, Oleg Nesterov,
	linux-mm

On Tue, Dec 05, 2017 at 08:45:27PM +0530, Hareesh Gundu wrote:
> Add EXPORT_SYMBOL to unmapped_area()
> and unmapped_area_topdown(). So they
> are usable from modules.

Please send this along with the actual modules.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: Export unmapped_area*() functions
  2017-12-05 15:29 ` Christoph Hellwig
@ 2017-12-06 15:30   ` Hareesh Gundu
  2017-12-06 15:41     ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Hareesh Gundu @ 2017-12-06 15:30 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Andrew Morton, Linus Torvalds, Oleg Nesterov, linux-mm, jcrouse

On 12/5/2017 8:59 PM, Christoph Hellwig wrote:
> On Tue, Dec 05, 2017 at 08:45:27PM +0530, Hareesh Gundu wrote:
>> 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 send this along with the actual modules.
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm: Export unmapped_area*() functions
  2017-12-06 15:30   ` Hareesh Gundu
@ 2017-12-06 15:41     ` Christoph Hellwig
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2017-12-06 15:41 UTC (permalink / raw)
  To: Hareesh Gundu
  Cc: Christoph Hellwig, Andrew Morton, Linus Torvalds, Oleg Nesterov,
	linux-mm, jcrouse

On Wed, Dec 06, 2017 at 09:00:57PM +0530, Hareesh Gundu wrote:
> On 12/5/2017 8:59 PM, Christoph Hellwig wrote:
>> On Tue, Dec 05, 2017 at 08:45:27PM +0530, Hareesh Gundu wrote:
>>> 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 majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-06 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 15:15 [PATCH] mm: Export unmapped_area*() functions Hareesh Gundu
2017-12-05 15:29 ` Christoph Hellwig
2017-12-06 15:30   ` Hareesh Gundu
2017-12-06 15:41     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox