no-MMU: expose vmalloc_huge() for alloc_large_system_hash()
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 25 Apr 2022 08:28:01 +0000 (01:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 25 Apr 2022 17:11:49 +0000 (10:11 -0700)
commit0fc74d820a012550be006ba82dd8f1e3fe6fa9f7
tree675fc94dd031d64dad3d04a755a4a3b029f1051d
parentaf2d861d4cd2a4da5137f795ee3509e6f944a25b
no-MMU: expose vmalloc_huge() for alloc_large_system_hash()

It turns out that for the CONFIG_MMU=n builds, vmalloc_huge() was never
defined, since it's defined in mm/vmalloc.c, which doesn't get built for
the no-MMU configurations.

Just implement the trivial wrapper for the no-MMU case too.  In fact,
just make it an alias to the existing __vmalloc() function that has the
same signature.

Link: https://lore.kernel.org/all/CAMuHMdVdx2V1uhv_152Sw3_z2xE0spiaWp1d6Ko8-rYmAxUBAg@mail.gmail.com/
Link: https://lore.kernel.org/all/CA+G9fYscb1y4a17Sf5G_Aibt+WuSf-ks_Qjw9tYFy=A4sjCEug@mail.gmail.com/
Link: https://lore.kernel.org/all/20220425150356.GA4138752@roeck-us.net/
Reported-and-tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Reported-and-tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nommu.c