Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1595987ybv; Thu, 20 Feb 2020 23:59:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxQg+zeq+Gczx8UaGZyNXzMILaFCtje5iAN3bMFPxW7GeZ4xJGfimD9VH5R5NvqTk4MXhEH X-Received: by 2002:aca:c4c4:: with SMTP id u187mr971238oif.120.1582271986363; Thu, 20 Feb 2020 23:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582271986; cv=none; d=google.com; s=arc-20160816; b=EVfjdVC5q8JjFjfT83D0CMeLQfpBxEzOUywTA+IUI+9RzatloBgcT9CArG3WqeBXOn ScFc23hSW4JbccvLwqUxO4/Ld6dduGQTkhRx6G1i7tXf1uYx+fjUOkpCPDuHkiUF/+eX vypJaCpYHxkF5vlsYyGsbnVCBeD7WYsLPnRi6XzU5OTzyXaP6+422qtgIs6iLkDlxuSz J/IsfskfKNSQzajwk/G1XAVgefxP6sdeAkK4wH5iTNhxWC5wq29KE0febyVTf719EN42 eVrdsVD1R4owM/sJS92+703WGnBzN3o3VLfLJ+Se4rriLl/voqAEHtqbsCb9iU5JOrZ5 Cwwg== 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=OQD1j9F/33SvM+Alk0Jfvxs1+dEXYVsgJbwPDrvu/Dk=; b=ZSc7E1ck+HJidvFaAOxlh8rvFDJfKdfAdvTxC6+PtO9KuIpFDRwrRD/dGuqzHluV4j zd8CaSvZyY9ACrEii42OtCAGvGNCacyMDhK6t0OlEppdaBQpOMrgODlW2RN+zo3NH6Cr pGTJWVx+LOzRKlhpA/bQFrZSVEsUhElu7k/KiJKMRONWRKnhorIjrs5D5Ya627SVkxTY UbagKWFp4BJBG+MrHT+WFbOm+jn/tGkwp+AVGtfKKqo88p1tu9J70kYMa7WXvdcvfTo5 dA+K0uLdE1zIL3Kkg2ribOs1USdwe3GoQn9FcnMr92FYgpKfx0KLd4YGR1BZxYtghfQD a1DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v8ZO7mWD; 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 194si473504oii.2.2020.02.20.23.59.34; Thu, 20 Feb 2020 23:59:46 -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=v8ZO7mWD; 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 S1730650AbgBUH6i (ORCPT + 99 others); Fri, 21 Feb 2020 02:58:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:58394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730543AbgBUH6d (ORCPT ); Fri, 21 Feb 2020 02:58:33 -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 F2C772073A; Fri, 21 Feb 2020 07:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271912; bh=4xz8fuR2XJP3Un2ldiH769b+k8BXaoSjCq8w1wOO9rc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v8ZO7mWDHff0rGVlg9vtpkHp6gk1mIHMwh8Em0i41TaDc1nltmHUXb/SHbWJjz3XI zrYVkx7wFxHVsnOZ0uaKo/wDiLw+gD7+lM8P0KBu8MxUT17Vq7hrsE3xXe79J38tiX LQVmyR+A0kSYkVEdQmnfmHoIW5PLDUVWWisyKH+c= 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 5.5 344/399] ARM: 8951/1: Fix Kexec compilation issue. Date: Fri, 21 Feb 2020 08:41:09 +0100 Message-Id: <20200221072434.230713301@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@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 2c3a9fd05f571..7ef1916fcbf45 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1905,7 +1905,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