From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Fri, 9 Jan 2015 17:00:02 +0000 Subject: [PATCH] ARM: mm: fix PMD_SECT_RDONLY undeclared compile error In-Reply-To: <1420653969-4048-1-git-send-email-victor.kamensky@linaro.org> References: <1420653969-4048-1-git-send-email-victor.kamensky@linaro.org> Message-ID: <20150109170002.GY12302@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Jan 07, 2015 at 10:06:09AM -0800, Victor Kamensky wrote: > From: Victor Kamensky > > In v3.19-rc3 tree when CONFIG_ARM_LPAE and CONFIG_DEBUG_RODATA are enabled > image failed to compile with the following error: > > arch/arm/mm/init.c:661:14: error: ?PMD_SECT_RDONLY? undeclared here (not in a function) > > It seems that '80d6b0c ARM: mm: allow text and rodata sections to be read-only' > and 'ded9477 ARM: 8109/1: mm: Modify pte_write and pmd_write logic for LPAE' > commits crossed. 80d6b0c uses PMD_SECT_RDONLY macro but ded9477 renames it > and uses software bits L_PMD_SECT_RDONLY instead. > > Fix is to use L_PMD_SECT_RDONLY instead PMD_SECT_RDONLY as ded9477 does in > another places. > > Signed-off-by: Victor Kamensky Please can you put it in the patch system with Will's ack if not already done, thanks. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net.