]> git.itanic.dy.fi Git - linux-stable/commit
MIPS: select ARCH_KEEP_MEMBLOCK unconditionally
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 7 Apr 2021 17:35:43 +0000 (10:35 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 23 Apr 2021 12:07:55 +0000 (14:07 +0200)
commitc55944cc0ec57731931987ff478a9f69fe68f157
treee5e405fe7f515395ee7d41bbcd1d50ffd67ba6ce
parent1d7ba0165d8206ac073f7ac3b14fc0836b66eae7
MIPS: select ARCH_KEEP_MEMBLOCK unconditionally

While removing allnoconfig_y from Kconfig, ARCH=mips allnoconfig builds
started failing with the error:

WARNING: modpost: vmlinux.o(.text+0x9c70): Section mismatch in reference
from the function reserve_exception_space() to the function
.meminit.text:memblock_reserve()
The function reserve_exception_space() references the function __meminit
memblock_reserve().
This is often because reserve_exception_space lacks a __meminit
annotation or the annotation of memblock_reserve is wrong.
ERROR: modpost: Section mismatches detected.
Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.

allnoconfig disables DEBUG_KERNEL and thus ARCH_KEEP_MEMBLOCK, which
changes __init_memblock to be equivalent to __meminit triggering the
above error.

Link: https://lore.kernel.org/linux-kbuild/20210313194836.372585-11-masahiroy@kernel.org/
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig