diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-07-08 16:49:42 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-08-25 13:35:48 +1000 |
commit | cf98d2b6eea6a1b2c43f85680ad58fcc3ea9496b (patch) | |
tree | fe68f714b50088fd9800f75e8d82f74584276aeb /arch/powerpc/mm/ptdump/shared.c | |
parent | powerpc/ptdump: Remove unused 'page_size' parameter (diff) | |
download | linux-dev-cf98d2b6eea6a1b2c43f85680ad58fcc3ea9496b.tar.xz linux-dev-cf98d2b6eea6a1b2c43f85680ad58fcc3ea9496b.zip |
powerpc/ptdump: Reduce level numbers by 1 in note_page() and add p4d level
Do the same as commit f8f0d0b6fa20 ("mm: ptdump: reduce level numbers
by 1 in note_page()") and add missing p4d level.
This will align powerpc to the users of generic ptdump.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d76495c574132b197b445a1f133755cca4b912a4.1625762906.git.christophe.leroy@csgroup.eu
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/mm/ptdump/shared.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/mm/ptdump/shared.c b/arch/powerpc/mm/ptdump/shared.c index c005fe041c18..03607ab90c66 100644 --- a/arch/powerpc/mm/ptdump/shared.c +++ b/arch/powerpc/mm/ptdump/shared.c @@ -68,8 +68,10 @@ static const struct flag_info flag_array[] = { }; struct pgtable_level pg_level[5] = { - { - }, { /* pgd */ + { /* pgd */ + .flag = flag_array, + .num = ARRAY_SIZE(flag_array), + }, { /* p4d */ .flag = flag_array, .num = ARRAY_SIZE(flag_array), }, { /* pud */ |