Received: by 10.223.185.116 with SMTP id b49csp743442wrg; Tue, 20 Feb 2018 07:11:33 -0800 (PST) X-Google-Smtp-Source: AH8x22605PLKw/0Oh8WKtMc9vER25W0Ovd5ifdXaACi37PRmO1QgrE4ihmdkSpobLSOf8NklzhB8 X-Received: by 10.99.111.78 with SMTP id k75mr12839342pgc.414.1519139493240; Tue, 20 Feb 2018 07:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519139493; cv=none; d=google.com; s=arc-20160816; b=RaJc0PmgRNgMFUnFgYepuWI185LgSSyXlHna8hbqqnNDD2rdnm8YCfJXwAf+fOFw/i 32m1Fdou4YHNSAlHCNPs0bGgrFR8XUkf7WJYd2Ed//PU40GRM0howYq+iIFZlX5TC7NW HSPUywtilpVeStEMIgQFXc2IpO1duCG0LpsfSTQrClFV1ksrdHgVu+vnUFc9Un39PawT SeUheYczdTSi7B7ma44EGIZeVMzcEXmHBBtr6ox55jDgD1cGa35LpS/j7ByyNuhPySy9 NozpHGIqMmXGIti938Z3VVQ4mM5JaZj1w9X1BfTXLQwcv9yaGL5ejUpjXdDEo2QoE86K ikZQ== 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 b91-v6si5706353plb.819.2018.02.20.07.11.19; Tue, 20 Feb 2018 07:11:33 -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 S1752364AbeBTPJ7 (ORCPT + 99 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.3285766-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:1pubBCoyK7Vg1tXRaiUowkWqm20Md9suTAdDsnV4jjuPy33aM1q K1GU3Q6Kg6NFzgMbkT35Kc3NIA1CAuEZQXMKbVIVVxq17PM8smSBveu+XCtp8WU/j/bGYfe /imGXFfYEuf8iukRWJJcjc979247qNIbc0UGsJ0+RI9iq6tXoYIRVgdk3t9SmSsfVVLV+t0 MG0FGyTUJjbf9mdIXb69g== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZYwGFYNpsEA=:DXZnnXZYEXPBRl6wo5CJSV TMGvVgya691kufufp48KiS188U88u1ue9PzuSnX30hoCE1jPSkpkh135gyZ0gOW71C0lTEus+ +9x70Jl1dPQhBD1QeFEOy8wHmDqPiLb010ZpNIcxbeBPuQgALJAU26qJ9P7RyMNzKIfeZdfQt Tm0EG6z6+HkfLs1gbTc/0biY39q4U/HhZPu4Qoh2apB5Oz2Wn486rv6nIVXj1ZyfF9jb4q3wg 4gCWGmhq6/yWnEgesb+zLvsekexjEUI2w5V1J3k0M87hk7E9nmUc2TS6B0w43v1E3sQGWFs0O rvgj2Mxlw3ZT3eKJqTX8qknGYWo6ajuvmGwmXkK1FudqlT2T+YDCUlnHoCU5X7m4d5BC7NCYZ Bd6qU+e58DhbUH5su2sdJZZz8DJQPT5X4pFiO1VADMUVDhSSqnWzIhQRAH0U9ZmPyZJ6UmPf8 DOKK3HaH6PCkH9z0+DgyTyazi7C37OTDfN+bEsNIAoKOsZtBaqkd2CJP2y4jxv6SPaVpzOrDH i5eOod9qaYAmZFU3o5WbRNTM1D9LdA/g1PFvFeUgCRlSwgxA9lgTOuJSPcXb4JliaOwks77hj icGVn/JkzdIHwmaaSenMGASDBGGUSz/sgheSmY1I6KAs3Dzf+wnztLnrgz7Z8vd5FFRlD7sau VwbSOG9CvldBhsTqRToqi8+lRBT+VFLgb47R8c9w8YOT20Ws14Tv5dMfyreXjM2AYltLpL7Ei aYWtGBaX5UrmnnSqvl5TfGztg3RbqccFuAgXfg== 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(+) 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. -- 2.9.0