From patchwork Tue Feb 20 15:09:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128913 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4740441ljc; Tue, 20 Feb 2018 07:10:03 -0800 (PST) X-Google-Smtp-Source: AH8x224cZXwTsjeAER3aro5ID+MAudfO2QfHdwGEu3pLHxB1/CVu84pCOVRJSOuGzhT99B7fOKz3 X-Received: by 10.101.80.132 with SMTP id r4mr8560578pgp.185.1519139403523; Tue, 20 Feb 2018 07:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519139403; cv=none; d=google.com; s=arc-20160816; b=CVBMQ6f3h2YmxdzgjdMn1XTAOh/oBHtnwfBT1QdOyjUY76yc1tKg6prKm5yBtTIpCh dyo+c0UJMHSMCWzyMDF43uqmwTkL4zLt6jzvbzL/HT/eeqep9qcW/iPuuPZgWFqEdxYT kyMl11om4hs0F1JIfpC5yPE/ro05wuZ588sBL2BHxAVRavmdZdLO2ojbpAlkZusBp5MM 5/1WvTEqF8RjYVdK41vz20V3RIZNnYbdE1h2KvMFIEq0STa815B8l0qFo6GguXFFQFfP V2pVNLgeEfFOQLb/XoFLjKDoJmAqpeZ3BbEjg7kSs/IaEHUkgsM+Haw+n1W3fsCygnGp fj3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=9JzbUJQLe8BVgPh2e2prtqeko7tF/Wz6U86w1JMXI4w=; b=irUoPbVf5sXg19HiE+vH/tiTsN5S/us6K9ntb30Z2DEKKazfh/a1bSYZBw3V1YK0j2 kbqwPUqabrLphij9szjmqmbTZwOpw0nLibjOjrfBgigsTvjKvMjJiZ5AEip1QsgF0q/5 kkmmv2taZkxEls8/SOAxd06xpTdYwGJdteH1K8wTp0mneH1TsTEhb1YxpeELyqcufvh2 MSn9x4TW6NqbCcRn4flLv0AeeaJvT/vECDrl+FeIfuCLwY+IswAfz1YUQGV0lYl8XknO q+QtOlqs63wy1fdLve8BgAeTUnToL3abZGeU/2XspFcHkitwNX1NOLKK0qHO2VmtFlQP 2uQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 u10-v6si7274046plu.362.2018.02.20.07.10.03; Tue, 20 Feb 2018 07:10:03 -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; 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 S1752368AbeBTPJ7 (ORCPT + 28 others); Tue, 20 Feb 2018 10:09:59 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:39271 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbeBTPJ6 (ORCPT ); Tue, 20 Feb 2018 10:09:58 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.129]) with ESMTPA (Nemesis) id 0LblS4-1eMlL81cXM-00jJxR; Tue, 20 Feb 2018 16:09:34 +0100 From: Arnd Bergmann To: Russell King Cc: Kees Cook , Laura Abbott , Jinbum Park , Arnd Bergmann , Tony Lindgren , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: make CONFIG_DEBUG_WX depend on MMU Date: Tue, 20 Feb 2018 16:09:19 +0100 Message-Id: <20180220150932.3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X5UrmnnSqvl5TfGztg3RbqccFuAgXfg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without CONFIG_MMU, this results in a build failure: ./arch/arm/include/asm/memory.h:92:23: error: initializer element is not constant #define VECTORS_BASE vectors_base arch/arm/mm/dump.c:32:4: note: in expansion of macro 'VECTORS_BASE' { VECTORS_BASE, "Vectors" }, arch/arm/mm/dump.c:71:11: error: 'L_PTE_USER' undeclared here (not in a function); did you mean 'VTIME_USER'? .mask = L_PTE_USER, ^~~~~~~~~~ Obviously the feature only makes sense with an MMU, so let's add the dependency here. Fixes: a8e53c151fe7 ("ARM: 8737/1: mm: dump: add checking for writable and executable") Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 Acked-by: Laura Abbott diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 7b3d9c5c73bb..6db106b5b9e9 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -22,6 +22,7 @@ config ARM_PTDUMP_DEBUGFS config DEBUG_WX bool "Warn on W+X mappings at boot" + depends on MMU select ARM_PTDUMP_CORE ---help--- Generate a warning if any W+X mappings are found at boot.