mm: highmem: export kmap_to_page for modules
authorWill Deacon <will.deacon@arm.com>
Fri, 19 Oct 2012 13:03:31 +0000 (14:03 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Oct 2012 07:49:24 +0000 (18:19 +1030)
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>
mm/highmem.c

index d517cd1..2a07f97 100644 (file)
@@ -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)
 {