Skip to content

Commit c55944c

Browse files
nickdesaulnierstsbogend
authored andcommitted
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/[email protected]/ Reported-by: Guenter Roeck <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Reviewed-by: Masahiro Yamada <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 1d7ba01 commit c55944c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ config MIPS
1212
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1313
select ARCH_HAS_UBSAN_SANITIZE_ALL
1414
select ARCH_HAS_GCOV_PROFILE_ALL
15-
select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL
15+
select ARCH_KEEP_MEMBLOCK
1616
select ARCH_SUPPORTS_UPROBES
1717
select ARCH_USE_BUILTIN_BSWAP
1818
select ARCH_USE_CMPXCHG_LOCKREF if 64BIT

0 commit comments

Comments
 (0)