[PATCH v8 24/30] powerpc: Test prefixed code patching

Jordan Niethe jniethe5 at gmail.com
Fri May 15 17:54:57 AEST 2020


Hey mpe could you add this please.
diff --git a/arch/powerpc/lib/code-patching.c b/arch/powerpc/lib/code-patching.c
--- a/arch/powerpc/lib/code-patching.c
+++ b/arch/powerpc/lib/code-patching.c
@@ -707,7 +707,7 @@ static void __init test_translate_branch(void)
     vfree(buf);
 }

-#ifdef __powerpc64__
+#ifdef CONFIG_PPC64
 static void __init test_prefixed_patching(void)
 {
     extern unsigned int code_patching_test1[];
@@ -733,7 +733,7 @@ static int __init test_code_patching(void)
     test_branch_bform();
     test_create_function_call();
     test_translate_branch();
-#ifdef __powerpc64__
+#ifdef CONFIG_PPC64
     test_prefixed_patching();
 #endif

-- 
2.17.1


More information about the Linuxppc-dev mailing list