MIPS: Move pgd_alloc() out of header
authorJames Hogan <james.hogan@imgtec.com>
Thu, 2 Feb 2017 01:21:35 +0000 (01:21 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 2 Feb 2017 15:06:26 +0000 (15:06 +0000)
commit814f91bf3ea0962e4f802324766bf301ef6f5431
treeb2bfe4ee5f1d342a674cbe4abb77ee12deddae63
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
MIPS: Move pgd_alloc() out of header

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: James Hogan <james.hogan@imgtec.com>
Acked-by: Ralf 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
arch/mips/include/asm/pgalloc.h
arch/mips/mm/Makefile
arch/mips/mm/pgtable.c [new file with mode: 0644]