Export the init_mm symbol to GPL modules so that MIPS KVM can use pgd_alloc() to create GVA page directory tables for trap & emulate mode, which runs guest code in user mode. On MIPS pgd_alloc() is implemented inline and refers to init_mm in order to copy kernel address space mappings into the new page directory. Signed-off-by: James Hogan <james.hogan@xxxxxxxxxx> Cc: linux-mm@xxxxxxxxx Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx> Cc: "Radim Krčmář" <rkrcmar@xxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: linux-mips@xxxxxxxxxxxxxx Cc: kvm@xxxxxxxxxxxxxxx --- mm/init-mm.c | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/init-mm.c b/mm/init-mm.c index 975e49f00f34..94aae08b41e1 100644 --- a/mm/init-mm.c +++ b/mm/init-mm.c @@ -1,3 +1,4 @@ +#include <linux/export.h> #include <linux/mm_types.h> #include <linux/rbtree.h> #include <linux/rwsem.h> @@ -25,3 +26,4 @@ struct mm_struct init_mm = { .user_ns = &init_user_ns, INIT_MM_CONTEXT(init_mm) }; +EXPORT_SYMBOL_GPL(init_mm); -- git-series 0.8.10