From: Hareesh Gundu <hareeshg@codeaurora.org>
To: Andrew Morton <akpm@linux-foundation.org>,
Christoph Hellwig <hch@lst.de>,
Linus Torvalds <torvalds@linux-foundation.org>,
Oleg Nesterov <oleg@redhat.com>
Cc: linux-mm@kvack.org, hareeshg@codeaurora.org
Subject: [PATCH] mm: Export unmapped_area*() functions
Date: Tue, 5 Dec 2017 20:45:27 +0530 [thread overview]
Message-ID: <1512486927-32349-1-git-send-email-hareeshg@codeaurora.org> (raw)
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>
next reply other threads:[~2017-12-05 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-05 15:15 Hareesh Gundu [this message]
2017-12-05 15:29 ` Christoph Hellwig
2017-12-06 15:30 ` Hareesh Gundu
2017-12-06 15:41 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1512486927-32349-1-git-send-email-hareeshg@codeaurora.org \
--to=hareeshg@codeaurora.org \
--cc=akpm@linux-foundation.org \
--cc=hch@lst.de \
--cc=linux-mm@kvack.org \
--cc=oleg@redhat.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox