MIPS: export has_transparent_hugepage() for modules
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 23 Oct 2020 19:44:40 +0000 (12:44 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 27 Oct 2020 11:44:34 +0000 (12:44 +0100)
commit31b4d8e172f614adc53ddecb4b6b2f6411a49b84
tree606f8afe7c905c92036ee8eb40a9945e3e5cf5af
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec
MIPS: export has_transparent_hugepage() for modules

MIPS should export its local version of "has_transparent_hugepage"
so that loadable modules (dax) can use it.

Fixes this build error:
ERROR: modpost: "has_transparent_hugepage" [drivers/dax/dax.ko] undefined!

Fixes: fd8cfd300019 ("arch: fix has_transparent_hugepage()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: linux-nvdimm@lists.01.org
Cc: Hugh Dickins <hughd@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mm/tlb-r4k.c