]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc/8xx: fix invalid register expression in head_8xx.S
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 24 May 2018 11:02:06 +0000 (11:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:31 +0000 (07:50 +0200)
[ Upstream commit e4ccb1dae6bdef228d729c076c38161ef6e7ca34 ]

New binutils generate the following warning

  AS      arch/powerpc/kernel/head_8xx.o
arch/powerpc/kernel/head_8xx.S: Assembler messages:
arch/powerpc/kernel/head_8xx.S:916: Warning: invalid register expression

This patch fixes it.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/head_8xx.S

index 4fee00d414e87c78d8a09ef3e9662b7bb7234c66..2d0d89e2cb9a8c5765583e0f2d99031dbf0c7e80 100644 (file)
@@ -958,7 +958,7 @@ start_here:
        tovirt(r6,r6)
        lis     r5, abatron_pteptrs@h
        ori     r5, r5, abatron_pteptrs@l
-       stw     r5, 0xf0(r0)    /* Must match your Abatron config file */
+       stw     r5, 0xf0(0)     /* Must match your Abatron config file */
        tophys(r5,r5)
        stw     r6, 0(r5)