aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/swsusp_asm64.S
diff options
context:
space:
mode:
authorGravatar Andreas Schwab <schwab@linux-m68k.org> 2017-08-05 19:55:11 +0200
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2017-08-10 22:29:41 +1000
commit8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d (patch)
treea2db42f9b485192a4fadec7d73ba365749f6063a /arch/powerpc/kernel/swsusp_asm64.S
parentpowerpc/mm/hash64: Make vmalloc 56T on hash (diff)
downloadlinux-8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d.tar.gz
linux-8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d.tar.bz2
linux-8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d.zip
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.S2
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