From: Vincenzo Frascino Date: Fri, 10 Jan 2020 12:37:59 +0000 (+0100) Subject: ARM: 8951/1: Fix Kexec compilation issue. X-Git-Tag: v5.4.22~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ccaac382af0a813019aff7fd4ec08694c65d73d;p=platform%2Fkernel%2Flinux-rpi.git ARM: 8951/1: Fix Kexec compilation issue. [ Upstream commit 76950f7162cad51d2200ebd22c620c14af38f718 ] To perform the reserve_crashkernel() operation kexec uses SECTION_SIZE to find a memblock in a range. SECTION_SIZE is not defined for nommu systems. Trying to compile kexec in these conditions results in a build error: linux/arch/arm/kernel/setup.c: In function ‘reserve_crashkernel’: linux/arch/arm/kernel/setup.c:1016:25: error: ‘SECTION_SIZE’ undeclared (first use in this function); did you mean ‘SECTIONS_WIDTH’? crash_size, SECTION_SIZE); ^~~~~~~~~~~~ SECTIONS_WIDTH linux/arch/arm/kernel/setup.c:1016:25: note: each undeclared identifier is reported only once for each function it appears in linux/scripts/Makefile.build:265: recipe for target 'arch/arm/kernel/setup.o' failed Make KEXEC depend on MMU to fix the compilation issue. Signed-off-by: Vincenzo Frascino Signed-off-by: Russell King Signed-off-by: Sasha Levin --- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9fadf32..05c9bbf 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1907,7 +1907,7 @@ config XIP_DEFLATED_DATA config KEXEC bool "Kexec system call (EXPERIMENTAL)" depends on (!SMP || PM_SLEEP_SMP) - depends on !CPU_V7M + depends on MMU select KEXEC_CORE help kexec is a system call that implements the ability to shutdown your