MIPS: Fix modpost error in modules attepting to use virt_addr_valid().
authorRalf Baechle <ralf@linux-mips.org>
Fri, 28 Dec 2012 14:34:40 +0000 (15:34 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 28 Dec 2012 16:04:31 +0000 (17:04 +0100)
commitd3ce88431892b703b04769566338a89eda6b0477
treef72f9c6ff08146ed75f64c8f216a4bfb312d2ac0
parent730b8dfe016dd1e91f73d8d3e6724da91397171c
MIPS: Fix modpost error in modules attepting to use virt_addr_valid().

ERROR: "min_low_pfn" [drivers/block/aoe/aoe.ko] undefined!

Fixed by moving the implementation of virt_addr_valid() into the kernel
proper and exporting it which removes the pains of an inline or macro
implementation.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/page.h
arch/mips/mm/ioremap.c