Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1621686ybv; Fri, 21 Feb 2020 00:27:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzx0x5+Pb9nR1KtChLRFPHc0fy6hOUsnEhBDL1Pf6uUS2k2u8dLvHcbdGnVRXDkzNk0vXx6 X-Received: by 2002:a9d:f26:: with SMTP id 35mr25718304ott.31.1582273648605; Fri, 21 Feb 2020 00:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273648; cv=none; d=google.com; s=arc-20160816; b=cF3UZSzWsZNAHlS4R9OMrryBOpNW6lziNTDh6Jim5YhVugBopDCMxvXxqY26UD7daB d6LSiwF5+LotVWRaIpVW3im6NDjUjm3+fH5xJla7p9l9/4hCXZyvx9hzaPJDhrB46/iP /5ja/Ek3mgz2ahGzJp0ESf5WRCfS/0iL4kz43LePWaplmD8Kpi2T7P3SYVQbz90/Ioxl +LLCiblYlQ5Q6aYfX5m2sNDR3vf9mpIlezXyWQ0vFABb3a1p4pYRjo67GJ/IkM82HzPM xsW10wGThxxlUQqE++26mqLexcgINjzPaVBqx+6Xatp0ig2LckeL485u1V2GJfy/yQve bdvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=axUmnxgBIB6UxeaYkEibARFikW4pZSPtzPgZS1xjDCI=; b=LkBEWvXjkJLWkwvAkuFms32jXWwo3rQ4ux05xic/VJEWVXd7R21PSYBFSIkdwvQ5lx 6VUwtgNNEaPC4EjiK4v2OJgG3kkPvsAwz2omAwkImy2BON3EBwrdc2lF0f5PPnabqPGD d6pvw5ft37dkdvOEXnD2b0xjNgUe6mwB5OZQZRn/FvwXmqSwLFLcBb2DPRZlVPamKfeY yoCS3P3rdoW2ebAhYvK0ta+DWROZw4TuGMtpbQXcXCA3FWNks4S2Z8XO1DWho5LwGkle AN9Mszam39Y5TcHlW4wffCBcq2aaj5Hmmm+7bwdQfEaSdvxBvgwD1uBi0YXITdTeM7Xs MEUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dKrUnvxl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18si1531080ots.317.2020.02.21.00.27.16; Fri, 21 Feb 2020 00:27:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dKrUnvxl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388544AbgBUIXr (ORCPT + 99 others); Fri, 21 Feb 2020 03:23:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:35904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388520AbgBUIXp (ORCPT ); Fri, 21 Feb 2020 03:23:45 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 327FA206ED; Fri, 21 Feb 2020 08:23:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273423; bh=61KVnLfdNCBRTqllf7fHtuq32lvkJ3ubBKpfsel+Xms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dKrUnvxlPCa8WLKGcA9A7WF/cTvfFebXjS5aNGL5v4GnjCJnwglAJwZuHXKwf2iDn zP/uKm6VxNycoDNokTDpeC+jCor1hkvlNrDli22vwEldRLxFqa1IfJ6CUF9dEDjfi6 iA6Ar3xJQ+5LZZ/z4jScxuJ1uJ7j1T/RCkA2Q3rU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vincenzo Frascino , Russell King , Sasha Levin Subject: [PATCH 4.19 164/191] ARM: 8951/1: Fix Kexec compilation issue. Date: Fri, 21 Feb 2020 08:42:17 +0100 Message-Id: <20200221072310.433235778@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincenzo Frascino [ 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 --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9f03befdfbf06..e2f7c50dbace5 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -2008,7 +2008,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 -- 2.20.1