Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1944299ybv; Fri, 14 Feb 2020 08:38:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxWilL/zW3N0KO8C6JJAts0lUQQvXOmSPng0aPvqktYqmjVTAQtyS5WyHQRxllaxz4ZtDux X-Received: by 2002:aca:1c0d:: with SMTP id c13mr2401948oic.44.1581698320773; Fri, 14 Feb 2020 08:38:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698320; cv=none; d=google.com; s=arc-20160816; b=sOEhQKwSClSFBdtzVR0AspnWUT0F9jNbnWiZ9v9aoHLQObLY7L4lFBX4FWai7FHoS7 O+MKRp+h8WNwNYCTR9NXmT7t0jW49yerBAmZ2K2pFrDCVKGSH788g4gHc42ObtEMy/Mg KBsYEoV8DnyhvvATHapJRERU1d6/XLnYeIQAiWzI/IejwuTGBAbrXLtADj2kVJVy4MH/ vxz1FQqvvUBwEP6fvjIkxgtc+eieZ4RD5pc4NkC9SZHGZZI74I/FXtzOqd13K42k1ApF ywSPTU973XE//ORqCQkByunSfsAqARAlqie5XN1QBVntKQw/3am1bYKAUNaiqZ+Zje02 4ogw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g+iidN+YqoAtA82V4QY3LMKYdlOyqZrGau01XgM00ng=; b=X6iBDQxA1VFSjrPWQzvkSIdF+6gBy5lzEeSCXldR/QuIh+q3S8MB7xK0igm+m4RqwX kG0O10ieJ4Zsm5nIJmZoho8YsUuVD6yxHv6LrMgrSl2Q5AGzsui0ziMBCGWRCzRpifEi Z0G4rGccWpk2FixRlDlXFLsWYgUS08kSE8ZN8H/9t6556RVOcOJ+s4QClJfviXWBau39 pISusbfIXSKfcwvsNS5JFcs4IgjzONIVbiUklILPYlwdZEoDK8E1DcCwBw8YZF+0CZLb LLu97C6PLdpQ3VWTKbybhH+OQOVdKPW7Z48meeOtV6RkBeuClXOgIsY6c7ZiwUudGWG9 mKFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=izDTTttX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si2699803oih.70.2020.02.14.08.38.28; Fri, 14 Feb 2020 08:38:40 -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=izDTTttX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393677AbgBNQhr (ORCPT + 99 others); Fri, 14 Feb 2020 11:37:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:60342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405723AbgBNQXt (ORCPT ); Fri, 14 Feb 2020 11:23:49 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0BE6924782; Fri, 14 Feb 2020 16:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697428; bh=gH2BIg6EpDo663xGfq3hBDFg5Bu3WvFw9PnUKPXMqgo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=izDTTttXOtqKVJBIBDZD32praz0KfPGkV3wxAgF6mXDU/aDOxKtRXKHKKWEt8pmPY GHxg21+6eMsbf0VbiSeHfqhXbI/CvfPKEGV53+O7hVweENY2jyQo8//Z3ivL84BTcG Nz4B+I+ypRzGKWk2JigH0CsAUFlzSvFZjf3qOzF4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vincenzo Frascino , Russell King , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.9 117/141] ARM: 8951/1: Fix Kexec compilation issue. Date: Fri, 14 Feb 2020 11:20:57 -0500 Message-Id: <20200214162122.19794-117-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore 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 74a70f91b01a4..56bd9beb6a35c 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -2020,7 +2020,7 @@ config XIP_PHYS_ADDR 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