]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8275/1: mm: fix PMD_SECT_RDONLY undeclared compile error
authorVictor Kamensky <victor.kamensky@linaro.org>
Fri, 9 Jan 2015 17:55:45 +0000 (18:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 9 Jan 2015 20:44:12 +0000 (20:44 +0000)
commitce45ef7b150b5445757f17b9fb56832bb175e363
tree9fb9918fff7fff208285d54d33247f2152a87694
parent77a97c0a9bbbd663da3e0fa529b7bd0394eadf76
ARM: 8275/1: mm: fix PMD_SECT_RDONLY undeclared compile error

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 '3d3e3f6 ARM: mm: allow text and rodata sections to be read-only'
and '41eafc4 ARM: 8109/1: mm: Modify pte_write and pmd_write logic for LPAE'
commits crossed. 3d3e3f6 uses PMD_SECT_RDONLY macro but 41eafc4 renames it
and uses software bits L_PMD_SECT_RDONLY instead.

Fix is to use L_PMD_SECT_RDONLY instead PMD_SECT_RDONLY as 41eafc4 does in
another places.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/init.c