diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2017-08-05 19:55:11 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-10 22:29:41 +1000 |
commit | 8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d (patch) | |
tree | a2db42f9b485192a4fadec7d73ba365749f6063a /arch/powerpc/kernel/swsusp_asm64.S | |
parent | 21a0e8c14bf61472723d2acc83f98ab35ff321b4 (diff) |
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>
Diffstat (limited to 'arch/powerpc/kernel/swsusp_asm64.S')
-rw-r--r-- | arch/powerpc/kernel/swsusp_asm64.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/swsusp_asm64.S b/arch/powerpc/kernel/swsusp_asm64.S index 988f38dced0f..82d8aae81c6a 100644 --- a/arch/powerpc/kernel/swsusp_asm64.S +++ b/arch/powerpc/kernel/swsusp_asm64.S @@ -179,7 +179,7 @@ nothing_to_copy: sld r3, r3, r0 li r0, 0 1: - dcbf r0,r3 + dcbf 0,r3 addi r3,r3,0x20 bdnz 1b |