Skip to contentSkip to conversation

powerpc/ptdump: fix conversion to GENERIC_PTDUMP

PATCH New Lukas Bulwahn 1 participant 1 message Dec 30, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/ptdump: fix conversion to GENERIC_PTDUMP

Commit e084728393a5 ("powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP") replaces the use of the powerpc-specific config PPC_DEBUG_WX by the generic DEBUG_WX. The commit misses the use of PPC_DEBUG_WX in the function note_prot_wx().

Replace this last occurrence of PPC_DEBUG_WX to complete the conversion.

This issue is identified with the script ./scripts/checkkconfigsymbols.py.

Fixes e084728393a5 ("powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP")
---
 arch/powerpc/mm/ptdump/ptdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/mm/ptdump/ptdump.c +1 -1
index 031956d0ee84..be120e09aa3e 100644
@@ -183,7 +183,7 @@ static void note_prot_wx(struct pg_state *st, unsigned long addr)
 {
 	pte_t pte = __pte(st->current_flags);
 
-	if (!IS_ENABLED(CONFIG_PPC_DEBUG_WX) || !st->check_wx)
+	if (!IS_ENABLED(CONFIG_DEBUG_WX) || !st->check_wx)
 		return;
 
 	if (!pte_write(pte) || !pte_exec(pte))
Signature · 1 line
2.17.1