Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/40x: Fix assembler warning about r0

The assembler says:
arch/powerpc/kernel/head_40x.S:623: 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: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200722022422.825197-1-mpe@ellerman.id.au

+1 -1
+1 -1
arch/powerpc/kernel/head_40x.S
··· 620 620 ori r6, r6, swapper_pg_dir@l 621 621 lis r5, abatron_pteptrs@h 622 622 ori r5, r5, abatron_pteptrs@l 623 - stw r5, 0xf0(r0) /* Must match your Abatron config file */ 623 + stw r5, 0xf0(0) /* Must match your Abatron config file */ 624 624 tophys(r5,r5) 625 625 stw r6, 0(r5) 626 626