Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638147 > unrolled thread

[PATCH] powerpc/mm: Simplify _PAGE_RO handling in page table dump

Started byChristophe Leroy <christophe.leroy@c-s.fr>
First post2017-05-09 16:20 +0200
Last post2017-05-09 16:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] powerpc/mm: Simplify _PAGE_RO handling in page table dump Christophe Leroy <christophe.leroy@c-s.fr> - 2017-05-09 16:20 +0200

#1638147 — [PATCH] powerpc/mm: Simplify _PAGE_RO handling in page table dump

FromChristophe Leroy <christophe.leroy@c-s.fr>
Date2017-05-09 16:20 +0200
Subject[PATCH] powerpc/mm: Simplify _PAGE_RO handling in page table dump
Message-ID<tFe9A-2OU-15@gated-at.bofh.it>
Commit fd893fe56a130 ("powerpc/mm: Fix missing page attributes in
page table dump") added support of _PAGE_RO attribute.

This patch makes it more simple

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
 arch/powerpc/mm/dump_linuxpagetables.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/arch/powerpc/mm/dump_linuxpagetables.c b/arch/powerpc/mm/dump_linuxpagetables.c
index d659345a98d6..eeef51107cff 100644
--- a/arch/powerpc/mm/dump_linuxpagetables.c
+++ b/arch/powerpc/mm/dump_linuxpagetables.c
@@ -121,13 +121,8 @@ static const struct flag_info flag_array[] = {
 		.set	= "user",
 		.clear	= "    ",
 	}, {
-#if _PAGE_RO == 0
-		.mask	= _PAGE_RW,
+		.mask	= _PAGE_RW | _PAGE_RO,
 		.val	= _PAGE_RW,
-#else
-		.mask	= _PAGE_RO,
-		.val	= 0,
-#endif
 		.set	= "rw",
 		.clear	= "ro",
 	}, {
-- 
2.12.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web