From: Will Deacon <will.deacon@arm.com>
Date: Fri, 19 Oct 2012 13:03:31 +0000 (+0100)
Subject: mm: highmem: export kmap_to_page for modules
X-Git-Tag: firefly_0821_release~3680^2~1369^2~26
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f0263d2d222e9e25f2587e51a9dc58c6fb2a9352;p=firefly-linux-kernel-4.4.55.git

mm: highmem: export kmap_to_page for modules

Some virtio device drivers (9p) need to translate high virtual addresses
to physical addresses, which are inserted into the virtqueue for
processing by userspace.

This patch exports the kmap_to_page symbol, so that the affected drivers
can be compiled as modules.

Cc: stable@kernel.org
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---

diff --git a/mm/highmem.c b/mm/highmem.c
index d517cd16a6eb..2a07f97dabf1 100644
--- a/mm/highmem.c
+++ b/mm/highmem.c
@@ -105,6 +105,7 @@ struct page *kmap_to_page(void *vaddr)
 
 	return virt_to_page(addr);
 }
+EXPORT_SYMBOL(kmap_to_page);
 
 static void flush_all_zero_pkmaps(void)
 {