summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2012-12-28 15:34:40 +0100
committerRalf Baechle <ralf@linux-mips.org>2012-12-28 17:04:31 +0100
commitd3ce88431892b703b04769566338a89eda6b0477 (patch)
treef72f9c6ff08146ed75f64c8f216a4bfb312d2ac0 /arch/mips/mm
parent730b8dfe016dd1e91f73d8d3e6724da91397171c (diff)
downloadop-kernel-dev-d3ce88431892b703b04769566338a89eda6b0477.zip
op-kernel-dev-d3ce88431892b703b04769566338a89eda6b0477.tar.gz
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>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/ioremap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/mm/ioremap.c b/arch/mips/mm/ioremap.c
index cacfd31..7657fd2 100644
--- a/arch/mips/mm/ioremap.c
+++ b/arch/mips/mm/ioremap.c
@@ -190,3 +190,9 @@ void __iounmap(const volatile void __iomem *addr)
EXPORT_SYMBOL(__ioremap);
EXPORT_SYMBOL(__iounmap);
+
+int __virt_addr_valid(const volatile void *kaddr)
+{
+ return pfn_valid(PFN_DOWN(virt_to_phys(kaddr)));
+}
+EXPORT_SYMBOL_GPL(__virt_addr_valid);
OpenPOWER on IntegriCloud