]> git.karo-electronics.de Git - linux-beck.git/commitdiff
s390/pgtable: get rid of _REGION3_ENTRY_RO
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 20 May 2016 11:34:58 +0000 (13:34 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:14 +0000 (15:58 +0200)
_REGION3_ENTRY_RO is a duplicate of _REGION_ENTRY_PROTECT.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h
arch/s390/mm/dump_pagetables.c

index 898456957c443d87e669cca7ed2464819e941681..68942f4c8668a1a39075ff427b0a5502ab891ba0 100644 (file)
@@ -270,8 +270,6 @@ static inline int is_module_addr(void *addr)
 #define _REGION3_ENTRY         (_REGION_ENTRY_TYPE_R3 | _REGION_ENTRY_LENGTH)
 #define _REGION3_ENTRY_EMPTY   (_REGION_ENTRY_TYPE_R3 | _REGION_ENTRY_INVALID)
 
-#define _REGION3_ENTRY_RO      0x200   /* page protection bit              */
-
 #define _REGION3_ENTRY_DIRTY   0x2000  /* SW region dirty bit */
 #define _REGION3_ENTRY_YOUNG   0x1000  /* SW region young bit */
 #define _REGION3_ENTRY_LARGE   0x0400  /* RTTE-format control, large page  */
index 8556d6be9b547eb0c22e9ad0f2efe1340d105ab1..861880df12c72933a7993b5b9fb257c9641e960b 100644 (file)
@@ -157,7 +157,7 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st,
                pud = pud_offset(pgd, addr);
                if (!pud_none(*pud))
                        if (pud_large(*pud)) {
-                               prot = pud_val(*pud) & _REGION3_ENTRY_RO;
+                               prot = pud_val(*pud) & _REGION_ENTRY_PROTECT;
                                note_page(m, st, prot, 2);
                        } else
                                walk_pmd_level(m, st, pud, addr);