MIPS: select ARCH_KEEP_MEMBLOCK unconditionally
PATCH 1/1 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.
DEBUG_KERNEL to enable sysfs memblock debug")
--- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/Kconfig +1 -1
@@ -12,7 +12,7 @@ config MIPS select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_HAS_UBSAN_SANITIZE_ALL select ARCH_HAS_GCOV_PROFILE_ALL - select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL + select ARCH_KEEP_MEMBLOCK select ARCH_SUPPORTS_UPROBES select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
Signature · 1 line
2.31.1.295.g9ea45b61b8-goog
Quoted 14 lines · Nick Desaulniers
While removing
allnoconfig_yfromKconfig, ARCH=mips allnoconfig builds started failing with the error:WARNING: modpost:
vmlinux.o(.text+0x9c70): Section mismatch in reference from the functionreserve_exception_space()to the function .meminit.text:memblock_reserve()
The functionreserve_exception_space()references the function__meminitmemblock_reserve().
This is often becausereserve_exception_spacelacks a__meminitannotation or the annotation ofmemblock_reserveis wrong.
ERROR: modpost: Section mismatches detected.
SetCONFIG_SECTION_MISMATCH_WARN_ONLY=yto allow them.
Quoted 8 lines
allnoconfig disables
DEBUG_KERNELand thusARCH_KEEP_MEMBLOCK, which changes__init_memblockto be equivalent to__meminittriggering the above error.Fixes commit a8c0f1c634507 ("MIPS: Select ARCH_KEEP_MEMBLOCK if
DEBUG_KERNELto enable sysfs memblock debug")
Cc: Masahiro Yamada <[email protected]>
Please replace it with:
Thanks.
Quoted 20 lines
Reported-by Guenter Roeck <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/mips/Kconfig +1
-2@@ -12,7 +12,7 @@ config MIPS select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_HAS_UBSAN_SANITIZE_ALL select ARCH_HAS_GCOV_PROFILE_ALL - select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL + select ARCH_KEEP_MEMBLOCK select ARCH_SUPPORTS_UPROBES select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_CMPXCHG_LOCKREF if 64BIT --
Quoted 2 lines
2.31.1.295.g9ea45b61b8-goog
--
Best Regards
Masahiro Yamada
Quoted 19 lines · Nick Desaulniers
While removing
allnoconfig_yfromKconfig, ARCH=mips allnoconfig builds started failing with the error:WARNING: modpost:
vmlinux.o(.text+0x9c70): Section mismatch in reference from the functionreserve_exception_space()to the function .meminit.text:memblock_reserve()
The functionreserve_exception_space()references the function__meminitmemblock_reserve().
This is often becausereserve_exception_spacelacks a__meminitannotation or the annotation ofmemblock_reserveis wrong.
ERROR: modpost: Section mismatches detected.
SetCONFIG_SECTION_MISMATCH_WARN_ONLY=yto allow them.allnoconfig disables
DEBUG_KERNELand thusARCH_KEEP_MEMBLOCK, which changes__init_memblockto be equivalent to__meminittriggering the above error.Fixes commit a8c0f1c634507 ("MIPS: Select ARCH_KEEP_MEMBLOCK if
Quoted 7 lines
DEBUG_KERNELto enable sysfs memblock debug")Cc Masahiro Yamada <[email protected]>Reported-by Guenter Roeck <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
applied to mips-next. I've dropped the Fixes tag, because it doesn't fix this commit. Sidenode wouldn't it make sence to make reserve_exception_space() as __meminit ?
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]