Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp820600ybv; Wed, 5 Feb 2020 15:20:10 -0800 (PST) X-Google-Smtp-Source: APXvYqz52XIWADHrtmzbhhHdS98/Syq8DG0zD58jztLC/gRgNoXqbgWqsynK0G/LCJM5Uic3tmzp X-Received: by 2002:a05:6830:3153:: with SMTP id c19mr9611185ots.39.1580944810115; Wed, 05 Feb 2020 15:20:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580944810; cv=none; d=google.com; s=arc-20160816; b=A2hD2JBTEGcDRTzlLweHJTYHlZuXWcd9tvpuFN3gGGh3zDerLYiaeJ1RRLEI2v7+3N 5VO5TLhcsAizYdmuQMKMPKXvfkgnZwKjp8R3nGDbOo4ZtuxjkpGbAQwSNf+pxZAYf9G+ FD9j2lQyB8q0/8/FxfQ23yKn+zK0rzCqNdkoKk7akG23iW/sy1qV1iNcL2VLQH/m9I60 UCEm3cCUOOmQ4QUh6b3b9P4XStb+AJ/97X3Wy2CzU2qOlav3UtfqvkOwMA/bIgCUcGRV LfwolVHkJfkyqFGsv+SoIh1GnTlIffH7r6+wwy7hKglz2VDzCUvPmcsg+v0laPCOAZx7 vq/A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tBtu8B42mNFXo0ApOnr9YHTy4lOe3v9EM8sVU3KDriA=; b=CtNR0ePCzT2kkFBJmiGvIcdict8kAxntr0Q6usfxRY8LanA88w1qvdkoY09XE4XYnW XgqGPpNvdHaBrkt/ZeFVopMPtlkl4dR8w+9oZwha0vfeqcNmXhn5qfgnw/Noc3NkzOfA 4z6b4NmRAh/XM2QHQiPnzYVizmGEzNhsEwd+jBe3JdFkrf9harr5Xa1HP+pUoVh5KHLA EAlTEhUO1j96XafUAa81oJJz1sBJLevWDfSMHyfgpciNnzXyAzeNuHpS6hfgZpnOATfe hHYoU9NOrL5UNKASC9XMYV52aM94AGJZcoZStxzpErs9QZMoW4nJpyktee72B0nX49bH TO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=aClxP9hO; 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 a17si742439otp.236.2020.02.05.15.19.58; Wed, 05 Feb 2020 15:20:10 -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=@agner.ch header.s=dkim header.b=aClxP9hO; 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 S1727655AbgBEWsm (ORCPT + 99 others); Wed, 5 Feb 2020 17:48:42 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:57964 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727456AbgBEWsl (ORCPT ); Wed, 5 Feb 2020 17:48:41 -0500 Received: from zyt.lan (unknown [IPv6:2a02:169:3df5::564]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E20FD5C406B; Wed, 5 Feb 2020 23:48:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1580942919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=tBtu8B42mNFXo0ApOnr9YHTy4lOe3v9EM8sVU3KDriA=; b=aClxP9hOfUae4u21PzuVsB8WUA5RhBSd/UM7Hdz/J/PN726NUE724SUfRo3AA5aAZwuBFB jOLf+ZLjSGCoSjOX9EpAxTp5ACzwciMrYTQRhJ7MexzyPhJ0LDB3R7FoNAYU3qh1X2ytKv lssJthU0irgBNngOpDmgM9c3KOxmClo= From: Stefan Agner To: linux@armlinux.org.uk Cc: arnd@arndb.de, linus.walleij@linaro.org, akpm@linux-foundation.org, nsekhar@ti.com, mchehab+samsung@kernel.org, bgolaszewski@baylibre.com, armlinux@m.disordat.com, benjamin.gaignard@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Hocko , Stefan Agner Subject: [PATCH] arm: make kexec depend on MMU Date: Wed, 5 Feb 2020 23:43:44 +0100 Message-Id: <5b595d37283f043df78259221f2b7d18e0cb0ce5.1580942558.git.stefan@agner.ch> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michal Hocko arm nommu config with KEXEC enabled doesn't compile arch/arm/kernel/setup.c: In function 'reserve_crashkernel': arch/arm/kernel/setup.c:1005:25: error: 'SECTION_SIZE' undeclared (first use in this function) crash_size, SECTION_SIZE); since 61603016e212 ("ARM: kexec: fix crashkernel= handling") which is over one year without anybody noticing. I have only noticed beause of my testing nommu config which somehow gained CONFIG_KEXEC without an intention. This suggests that nobody is actually using KEXEC on nommu ARM configs. It is even a question whether kexec works with nommu. Make KEXEC depend on MMU to make this clear. If somebody wants to enable there will be probably more things to take care. Signed-off-by: Michal Hocko Reviewed-by: Stefan Agner Signed-off-by: Stefan Agner --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 96dab76da3b3..59ce8943151f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1906,6 +1906,7 @@ 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.25.0