]> Git Repo - J-linux.git/commitdiff
powerpc/vdso32: Fix use of crtsavres for PPC64
authorChristophe Leroy <[email protected]>
Thu, 19 Sep 2024 18:55:57 +0000 (20:55 +0200)
committerMichael Ellerman <[email protected]>
Fri, 20 Sep 2024 09:06:19 +0000 (19:06 +1000)
crtsavres.S content is encloded by a #ifndef CONFIG_PPC64

To be used on VDSO32 on PPC64 it's content must available on PPC64 as
well.

Replace #ifndef CONFIG_PPC64 by #ifndef __powerpc64__ as __powerpc64__
is not set when building VDSO32 on PPC64.

Reported-by: Christian Zigotzky <[email protected]>
Closes: https://lore.kernel.org/linuxppc-dev/[email protected]/T/
Fixes: b163596a5b6f ("powerpc/vdso32: Add crtsavres")
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/aded2b257018fe654db759fdfa4ab1a0b5426b1b.1726772140.git.christophe.leroy@csgroup.eu
arch/powerpc/lib/crtsavres.S

index 7e5e1c28e56ac58b4cd3ce718c8eeea92c18735e..8967903c15e99faa4a48e8510f0cc631e3aed369 100644 (file)
@@ -46,7 +46,7 @@
 
        .section ".text"
 
-#ifndef CONFIG_PPC64
+#ifndef __powerpc64__
 
 /* Routines for saving integer registers, called by the compiler.  */
 /* Called with r11 pointing to the stack header word of the caller of the */
This page took 0.049331 seconds and 4 git commands to generate.