Skip to content

Commit ec80eb4

Browse files
arndbRussell King
authored andcommitted
ARM: 8744/1: don't discard memblock for kexec
Discarding the memblock arrays usually works, but causes problems with kexec, as pointed out by this kbuild warning: WARNING: vmlinux.o(.text+0x7c60): Section mismatch in reference from the function machine_kexec_prepare() to the function .meminit.text:memblock_is_region_memory() This lets us keep the memblock structures around whenever kexec is enabled, but otherwise still drops them. Fixes: cf1b099 ("ARM: 8693/1: discard memblock arrays when possible") Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent a21b4c1 commit ec80eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ config ARM
33
bool
44
default y
55
select ARCH_CLOCKSOURCE_DATA
6-
select ARCH_DISCARD_MEMBLOCK if !HAVE_ARCH_PFN_VALID
6+
select ARCH_DISCARD_MEMBLOCK if !HAVE_ARCH_PFN_VALID && !KEXEC
77
select ARCH_HAS_DEBUG_VIRTUAL if MMU
88
select ARCH_HAS_DEVMEM_IS_ALLOWED
99
select ARCH_HAS_ELF_RANDOMIZE

0 commit comments

Comments
 (0)