]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbd67991d44d22b60d609dbfe3ca7b75d8cd8d79
treea2db42f9b485192a4fadec7d73ba365749f6063a
parenta6cc6a5a8fb6da239c14708e313b437eec84899f
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