diff options
author | Will Deacon <will.deacon@arm.com> | 2012-10-19 09:03:31 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-10-22 03:49:24 -0400 |
commit | f0263d2d222e9e25f2587e51a9dc58c6fb2a9352 (patch) | |
tree | 153ae072b6ccc3079ecccadad64b5d5dd81a70cc /mm/highmem.c | |
parent | dd8e8c4a2c902d8350b702e7bc7c2799e5e7e331 (diff) |
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>
Diffstat (limited to 'mm/highmem.c')
-rw-r--r-- | mm/highmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
105 | 105 | ||
106 | return virt_to_page(addr); | 106 | return virt_to_page(addr); |
107 | } | 107 | } |
108 | EXPORT_SYMBOL(kmap_to_page); | ||
108 | 109 | ||
109 | static void flush_all_zero_pkmaps(void) | 110 | static void flush_all_zero_pkmaps(void) |
110 | { | 111 | { |