powerpc: Fix invalid use of register expressions
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 5 Aug 2017 17:55:11 +0000 (19:55 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:29:41 +0000 (22:29 +1000)
commit8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d
treea2db42f9b485192a4fadec7d73ba365749f6063a
parent21a0e8c14bf61472723d2acc83f98ab35ff321b4
powerpc: Fix invalid use of register expressions

binutils >= 2.26 now warns about misuse of register expressions in
assembler operands that are actually literals, for example:

  arch/powerpc/kernel/entry_64.S:535: Warning: invalid register expression

In practice these are almost all uses of r0 that should just be a
literal 0.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
[mpe: Mention r0 is almost always the culprit, fold in purgatory change]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/swsusp_asm64.S
arch/powerpc/lib/copypage_power7.S
arch/powerpc/lib/copyuser_power7.S
arch/powerpc/lib/memcpy_power7.S
arch/powerpc/lib/string_64.S
arch/powerpc/purgatory/trampoline.S