powerpc/ptdump: Fix DEBUG_WX since generic ptdump conversion
[linux-2.6-block.git] / arch / powerpc / mm / ptdump / ptdump.c
index bf251191e78d96baa389d625ea2ec208a254e66c..32bfb215c48583be6a06d8800250f17dac944df0 100644 (file)
@@ -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))