summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2020-08-06 06:01:42 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-23 10:46:54 +0200
commit87c09eb8f4e8a82c78d1a1c5da566260c50bb243 (patch)
tree6a2e91da02937f4af999ec48aeee99bdf195b5be
parentc4e1e1cdfd77d8229a5f219106fcd358f415ddbb (diff)
downloadlinux-stable-87c09eb8f4e8a82c78d1a1c5da566260c50bb243.tar.gz
linux-stable-87c09eb8f4e8a82c78d1a1c5da566260c50bb243.tar.bz2
linux-stable-87c09eb8f4e8a82c78d1a1c5da566260c50bb243.zip
powerpc/32s: Fix assembler warning about r0
commit b51ba4fe2e134b631f9c8f45423707aab71449b5 upstream. The assembler says: arch/powerpc/kernel/head_32.S:1095: Warning: invalid register expression It's objecting to the use of r0 as the RA argument. That's because when RA = 0 the literal value 0 is used, rather than the content of r0, making the use of r0 in the source potentially confusing. Fix it to use a literal 0, the generated code is identical. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/2b69ac8e1cddff6f808fc7415907179eab4aae9e.1596693679.git.christophe.leroy@csgroup.eu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/powerpc/kernel/head_32.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S
index 29b2fed93289..1fb98efd5404 100644
--- a/arch/powerpc/kernel/head_32.S
+++ b/arch/powerpc/kernel/head_32.S
@@ -986,7 +986,7 @@ start_here:
*/
lis r5, abatron_pteptrs@h
ori r5, r5, abatron_pteptrs@l
- stw r5, 0xf0(r0) /* This much match your Abatron config */
+ stw r5, 0xf0(0) /* This much match your Abatron config */
lis r6, swapper_pg_dir@h
ori r6, r6, swapper_pg_dir@l
tophys(r5, r5)