Commit 64b87b0c authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/ptdump: Remove unused 'page_size' parameter

note_page_update_state() doesn't use page_size. Remove it.

Could also be removed to note_page() but as a following patch
will remove all current users of note_page(), just leave it as
is for now.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e2f80d052001155251bfe009c360d0c5d9242c6b.1625762906.git.christophe.leroy@csgroup.eu
parent 11f27a7f
...@@ -189,7 +189,7 @@ static void note_prot_wx(struct pg_state *st, unsigned long addr) ...@@ -189,7 +189,7 @@ static void note_prot_wx(struct pg_state *st, unsigned long addr)
} }
static void note_page_update_state(struct pg_state *st, unsigned long addr, static void note_page_update_state(struct pg_state *st, unsigned long addr,
unsigned int level, u64 val, unsigned long page_size) unsigned int level, u64 val)
{ {
u64 flag = val & pg_level[level].mask; u64 flag = val & pg_level[level].mask;
u64 pa = val & PTE_RPN_MASK; u64 pa = val & PTE_RPN_MASK;
...@@ -213,7 +213,7 @@ static void note_page(struct pg_state *st, unsigned long addr, ...@@ -213,7 +213,7 @@ static void note_page(struct pg_state *st, unsigned long addr,
/* At first no level is set */ /* At first no level is set */
if (!st->level) { if (!st->level) {
pt_dump_seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); pt_dump_seq_printf(st->seq, "---[ %s ]---\n", st->marker->name);
note_page_update_state(st, addr, level, val, page_size); note_page_update_state(st, addr, level, val);
/* /*
* Dump the section of virtual memory when: * Dump the section of virtual memory when:
* - the PTE flags from one entry to the next differs. * - the PTE flags from one entry to the next differs.
...@@ -242,7 +242,7 @@ static void note_page(struct pg_state *st, unsigned long addr, ...@@ -242,7 +242,7 @@ static void note_page(struct pg_state *st, unsigned long addr,
* Address indicates we have passed the end of the * Address indicates we have passed the end of the
* current section of virtual memory * current section of virtual memory
*/ */
note_page_update_state(st, addr, level, val, page_size); note_page_update_state(st, addr, level, val);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment