提交 de23be5f 编写于 作者: S Stephen Rothwell 提交者: Linus Torvalds

xen: export arbitrary_virt_to_machine

Fixes this build error:

 ERROR: "arbitrary_virt_to_machine" [drivers/xen/xen-gntdev.ko] undefined!
Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3632ef89
...@@ -201,6 +201,7 @@ xmaddr_t arbitrary_virt_to_machine(void *vaddr) ...@@ -201,6 +201,7 @@ xmaddr_t arbitrary_virt_to_machine(void *vaddr)
offset = address & ~PAGE_MASK; offset = address & ~PAGE_MASK;
return XMADDR(((phys_addr_t)pte_mfn(*pte) << PAGE_SHIFT) + offset); return XMADDR(((phys_addr_t)pte_mfn(*pte) << PAGE_SHIFT) + offset);
} }
EXPORT_SYMBOL_GPL(arbitrary_virt_to_machine);
void make_lowmem_page_readonly(void *vaddr) void make_lowmem_page_readonly(void *vaddr)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册