Skip to content

Commit 8d84fca

Browse files
committed
powerpc/ptdump: Fix DEBUG_WX since generic ptdump conversion
In note_prot_wx() we bail out without reporting anything if CONFIG_PPC_DEBUG_WX is disabled. But CONFIG_PPC_DEBUG_WX was removed in the conversion to generic ptdump, we now need to use CONFIG_DEBUG_WX instead. Fixes: e084728 ("powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP") Cc: [email protected] # v5.15+ Signed-off-by: Michael Ellerman <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8734b41 commit 8d84fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/ptdump/ptdump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static void note_prot_wx(struct pg_state *st, unsigned long addr)
183183
{
184184
pte_t pte = __pte(st->current_flags);
185185

186-
if (!IS_ENABLED(CONFIG_PPC_DEBUG_WX) || !st->check_wx)
186+
if (!IS_ENABLED(CONFIG_DEBUG_WX) || !st->check_wx)
187187
return;
188188

189189
if (!pte_write(pte) || !pte_exec(pte))

0 commit comments

Comments
 (0)