]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Rewrite pfn_valid to work in modules, too.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 18 May 2013 15:02:59 +0000 (17:02 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 19 May 2013 07:56:58 +0000 (09:56 +0200)
commit1ac9fd02319ebf059ffdf3d0f23811fac99000d4
treef43c727a62b114b2541e8744419df76a1efd2698
parent468a0a52ac4e2a2c4a841043a1e9fc9817215aa8
MIPS: Rewrite pfn_valid to work in modules, too.

This fixes:

  MODPOST 393 modules
ERROR: "min_low_pfn" [arch/mips/kvm/kvm.ko] undefined!
make[3]: *** [__modpost] Error 1

It would have been possible to just export min_low_pfn but in the end
pfn_valid should return 1 for any pfn argument for which a struct page
exists so using min_low_pfn was wrong anyway.

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