• James Hogan's avatar
    MIPS: Move pgd_alloc() out of header · 814f91bf
    James Hogan authored
    pgd_alloc() references init_mm which is not exported to modules. In
    order for KVM to be able to use pgd_alloc() to allocate GVA page tables,
    move pgd_alloc() into a new pgtable.c file and export it to modules.
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: "Radim Krčmář" <rkrcmar@redhat.com>
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    814f91bf
pgalloc.h 2.62 KB