arm: Fix bad memcpy.S str8w macro argument count
PATCH 1/1 arm: Fix bad memcpy.S str8w macro argument count
Remove the extra (empty) argument passed to str8w, causing the following error:
<instantiation>:40:47: error: too many positional arguments
str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f
^
u-boot/arch/arm/lib/memcpy.S:240:5: note: while in macro instantiation
17: forward_copy_shift pull=16 push=16
^Note: no functional change intended.
--- arch/arm/lib/memcpy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/lib/memcpy.S +1 -1
@@ -210,7 +210,7 @@ ENTRY(memcpy) orr r9, r9, ip, lspush #\push mov ip, ip, lspull #\pull orr ip, ip, lr, lspush #\push - str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f + str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, abort=19f bge 12b PLD( cmn r2, #96 ) PLD( bge 13b )
Signature · 1 line
2.34.0.rc0.344.g81b53c2807-goog
Quoted 23 lines · Pierre-Clément Tosi
Remove the extra (empty) argument passed to str8w, causing the following error:
<instantiation>:40:47: error: too many positional arguments str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f ^ u-boot/arch/arm/lib/memcpy.S:240:5: note: while in macro instantiation 17: forward_copy_shift pull=16 push=16 ^Note: no functional change intended.
Fixes d8834a1323af ("arm: Use optimized memcpy and memset from linux")Signed-off-by Pierre-Clément Tosi <[email protected]>--- arch/arm/lib/memcpy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/lib/memcpy.S +0
-0
arch/arm/lib/memcpy.S ENTRY(memcpy) · line 216
Quoted 8 lines
arch/arm/lib/memcpy.S +1
-1@@ -210,7 +210,7 @@ ENTRY(memcpy) orr r9, r9, ip, lspush #\push mov ip, ip, lspull #\pull orr ip, ip, lr, lspush #\push - str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f + str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, abort=19f bge 12b PLD( cmn r2, #96 ) PLD( bge 13b )
Since this code is both taken from Linux, and likely in need of a re-sync with Linux, has this issue been addressed upstream? Or no longer present? Thanks.
Signature · 1 line
Tom
Quoted 29 lines · Tom Rini
Quoted 27 lines · Pierre-Clément Tosi
Remove the extra (empty) argument passed to str8w, causing the following error:
<instantiation>:40:47: error: too many positional arguments str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f ^ u-boot/arch/arm/lib/memcpy.S:240:5: note: while in macro instantiation 17: forward_copy_shift pull=16 push=16 ^Note: no functional change intended.
Fixes d8834a1323af ("arm: Use optimized memcpy and memset from linux")Signed-off-by Pierre-Clément Tosi <[email protected]>--- arch/arm/lib/memcpy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/lib/memcpy.S +0
-1@@ -210,7 +210,7 @@ ENTRY(memcpy) orr r9, r9, ip, lspush #\push mov ip, ip, lspull #\pull orr ip, ip, lr, lspush #\push - str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f
Quoted 11 lines
arch/arm/lib/memcpy.S ENTRY(memcpy) · line 216
Quoted 4 lines
arch/arm/lib/memcpy.S +1
-0+ str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, abort=19f bge 12b PLD( cmn r2, #96 ) PLD( bge 13b )Since this code is both taken from Linux, and likely in need of a re-sync with Linux, has this issue been addressed upstream? Or no longer present? Thanks.
Signature · 1 line
Tom
In a way, both; it is no longer present in memcpy.S because that file now uses the shared implementation from copy_template.S but that particular line was fixed in the same way (and funnily enough with a similar commit message) more than 2 years ago in baf2df8e15be22b8bd24bdd6fd4575b6641bcfd1 ("ARM: 8827/1: fix argument count to match macro definition").
Therefore, re-syncing would certainly solve the issue.
Signature · 1 line
Pierre
Quoted 42 lines · Pierre-Clément Tosi
Quoted 29 lines · Tom Rini
Quoted 27 lines · Pierre-Clément Tosi
Remove the extra (empty) argument passed to str8w, causing the following error:
<instantiation>:40:47: error: too many positional arguments str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f ^ u-boot/arch/arm/lib/memcpy.S:240:5: note: while in macro instantiation 17: forward_copy_shift pull=16 push=16 ^Note: no functional change intended.
Fixes d8834a1323af ("arm: Use optimized memcpy and memset from linux")Signed-off-by Pierre-Clément Tosi <[email protected]>--- arch/arm/lib/memcpy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/lib/memcpy.S +0
-1@@ -210,7 +210,7 @@ ENTRY(memcpy) orr r9, r9, ip, lspush #\push mov ip, ip, lspull #\pull orr ip, ip, lr, lspush #\push - str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19fQuoted 11 lines
arch/arm/lib/memcpy.S ENTRY(memcpy) · line 216
Quoted 4 lines
arch/arm/lib/memcpy.S +1
-0+ str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, abort=19f bge 12b PLD( cmn r2, #96 ) PLD( bge 13b )Since this code is both taken from Linux, and likely in need of a re-sync with Linux, has this issue been addressed upstream? Or no longer present? Thanks.
Signature · 1 line
Tom
Quoted 7 lines
In a way, both; it is no longer present in
memcpy.Sbecause that file now uses the shared implementation fromcopy_template.Sbut that particular line was fixed in the same way (and funnily enough with a similar commit message) more than 2 years ago inbaf2df8e15be22b8bd24bdd6fd4575b6641bcfd1("ARM: 8827/1: fix argument count to match macro definition").Therefore, re-syncing would certainly solve the issue.
Any chance you have time / interest in a resync? Otherwise, I'll take your patch soon. Thanks!
Signature · 1 line
Tom
Quoted 10 lines · Pierre-Clément Tosi
Remove the extra (empty) argument passed to str8w, causing the following error:
<instantiation>:40:47: error: too many positional arguments str8w r0, r3, r4, r5, r6, r7, r8, r9, ip, , abort=19f ^ u-boot/arch/arm/lib/memcpy.S:240:5: note: while in macro instantiation 17: forward_copy_shift pull=16 push=16 ^
Quoted 4 lines
Note: no functional change intended.
Fixes d8834a1323af ("arm: Use optimized memcpy and memset from linux")Signed-off-by Pierre-Clément Tosi <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom