Skip to content

Commit 1e34792

Browse files
Victor KamenskyRussell King
authored andcommitted
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 '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 <victor.kamensky@linaro.org> Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent ac08468 commit 1e34792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mm/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ static struct section_perm ro_perms[] = {
658658
.start = (unsigned long)_stext,
659659
.end = (unsigned long)__init_begin,
660660
#ifdef CONFIG_ARM_LPAE
661-
.mask = ~PMD_SECT_RDONLY,
662-
.prot = PMD_SECT_RDONLY,
661+
.mask = ~L_PMD_SECT_RDONLY,
662+
.prot = L_PMD_SECT_RDONLY,
663663
#else
664664
.mask = ~(PMD_SECT_APX | PMD_SECT_AP_WRITE),
665665
.prot = PMD_SECT_APX | PMD_SECT_AP_WRITE,

0 commit comments

Comments
 (0)