summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/ppc_asm.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2017-08-05 19:55:11 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-10 22:29:41 +1000
commit8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d (patch)
treea2db42f9b485192a4fadec7d73ba365749f6063a /arch/powerpc/include/asm/ppc_asm.h
parent21a0e8c14bf61472723d2acc83f98ab35ff321b4 (diff)
downloadlinux-stable-8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d.tar.gz
linux-stable-8a583c0a8d316d8ea52ea78491174ab1a3e9ef9d.tar.bz2
linux-stable-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/include/asm/ppc_asm.h')
-rw-r--r--arch/powerpc/include/asm/ppc_asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h
index 6baeeb9acd0d..daeda2bbe12a 100644
--- a/arch/powerpc/include/asm/ppc_asm.h
+++ b/arch/powerpc/include/asm/ppc_asm.h
@@ -439,7 +439,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_601)
.machine push ; \
.machine "power4" ; \
lis scratch,0x60000000@h; \
- dcbt r0,scratch,0b01010; \
+ dcbt 0,scratch,0b01010; \
.machine pop
/*