Commit f0263d2d authored by Will Deacon's avatar Will Deacon Committed by Rusty Russell

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: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent dd8e8c4a
...@@ -105,6 +105,7 @@ struct page *kmap_to_page(void *vaddr) ...@@ -105,6 +105,7 @@ struct page *kmap_to_page(void *vaddr)
return virt_to_page(addr); return virt_to_page(addr);
} }
EXPORT_SYMBOL(kmap_to_page);
static void flush_all_zero_pkmaps(void) static void flush_all_zero_pkmaps(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment