Skip to content

Commit

Permalink
mm: highmem: export kmap_to_page for modules
Browse files Browse the repository at this point in the history
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: [email protected]
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
wildea01 authored and rustyrussell committed Oct 22, 2012
1 parent dd8e8c4 commit f0263d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f0263d2

Please sign in to comment.