diff options
author | Minchan Kim | 2014-06-05 01:11:09 +0200 |
---|---|---|
committer | Linus Torvalds | 2014-06-05 01:54:14 +0200 |
commit | 93ef6d6ca11382eff03812797da457bc176653a4 (patch) | |
tree | 6abb57fdee41883bebf3928644d92d81c8a4e2cc /mm | |
parent | zsmalloc: fixup trivial zs size classes value in comments (diff) | |
download | kernel-qcow2-linux-93ef6d6ca11382eff03812797da457bc176653a4.tar.gz kernel-qcow2-linux-93ef6d6ca11382eff03812797da457bc176653a4.tar.xz kernel-qcow2-linux-93ef6d6ca11382eff03812797da457bc176653a4.zip |
mm/vmalloc.c: export unmap_kernel_range()
zsmalloc needs exported unmap_kernel_range for building as a module. See
https://lkml.org/lkml/2013/1/18/487
I didn't send a patch to make unmap_kernel_range exportable at that time
because zram was staging stuff and I thought VM function exporting for
staging stuff makes no sense.
Now zsmalloc was promoted. If we can't build zsmalloc as module, it means
we can't build zram as module, either. Additionally, buddy map_vm_area is
already exported so let's export unmap_kernel_range to help his buddy.
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmalloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 2ed75fb89fc1..f64632b67196 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1268,6 +1268,7 @@ void unmap_kernel_range(unsigned long addr, unsigned long size) vunmap_page_range(addr, end); flush_tlb_kernel_range(addr, end); } +EXPORT_SYMBOL_GPL(unmap_kernel_range); int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages) { |