MIPS: export has_transparent_hugepage() for modules
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Randy Dunlap <[email protected]>
Cc Thomas Bogendoerfer <[email protected]>
Cc Dan Williams <[email protected]>
Cc Vishal Verma <[email protected]>
Cc Dave Jiang <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Andrew Morton <[email protected]>
--- arch/mips/mm/tlb-r4k.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/mm/tlb-r4k.c +1 -0
@@ -438,6 +438,7 @@ int has_transparent_hugepage(void) }return mask ==PM_HUGE_MASK ; } +EXPORT_SYMBOL (has_transparent_hugepage);#endif /* CONFIG_TRANSPARENT_HUGEPAGE */
Quoted 17 lines · Randy Dunlap
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 <[email protected]>Signed-off-by Randy Dunlap <[email protected]>Cc Thomas Bogendoerfer <[email protected]>Cc Dan Williams <[email protected]>Cc Vishal Verma <[email protected]>Cc Dave Jiang <[email protected]>Cc Hugh Dickins <[email protected]>Cc Andrew Morton <[email protected]>
Quoted 3 lines
--- arch/mips/mm/tlb-r4k.c | 1 + 1 file changed, 1 insertion(+)
applied to mips-fixes.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]