Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 8827/1: fix argument count to match macro definition

The macro str8w takes 10 arguments, abort being the 10th. In this
particular instantiation the abort argument is passed as 11th
argument leading to an error when using LLVM's integrated
assembler:
<instantiation>:46:47: error: too many positional arguments
str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f
^
arch/arm/lib/copy_template.S:277:5: note: while in macro instantiation
18: forward_copy_shift pull=24 push=8
^

The argument is not used in the macro hence this does not change
code generation.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

authored by

Stefan Agner and committed by
Russell King
baf2df8e 071d184a

+1 -1
+1 -1
arch/arm/lib/copy_template.S
··· 241 241 orr r9, r9, ip, lspush #\push 242 242 mov ip, ip, lspull #\pull 243 243 orr ip, ip, lr, lspush #\push 244 - str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f 244 + str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, abort=19f 245 245 bge 12b 246 246 PLD( cmn r2, #96 ) 247 247 PLD( bge 13b )