aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-06-29 19:33:04 -0400
committerTom Rini <trini@konsulko.com>2021-07-09 12:15:41 -0400
commitf7b845bfe0621d04f5f32caa14a5aaca799c904e (patch)
tree7f0b710993a08575e4b3c51dbe92b2e8d1ec2e90
parent2359fa7a87848626bcbd3399e92c657595880cd7 (diff)
downloadu-boot-WIP/2021-07-09-arm-updates.zip
u-boot-WIP/2021-07-09-arm-updates.tar.gz
u-boot-WIP/2021-07-09-arm-updates.tar.bz2
arm: armv8: Fix warning about redeclaring global functions as weakWIP/2021-07-09-arm-updates
As seen with clang-12: warning: __asm_invalidate_l3_dcache changed binding to STB_WEAK As we indeed use ENTRY and then declare the function weak manually. Use the WEAK declarative from <linux/linkage.h> instead. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--arch/arm/cpu/armv8/cache.S9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/cpu/armv8/cache.S b/arch/arm/cpu/armv8/cache.S
index 443d94c..e04907d 100644
--- a/arch/arm/cpu/armv8/cache.S
+++ b/arch/arm/cpu/armv8/cache.S
@@ -188,27 +188,24 @@ ENDPROC(__asm_invalidate_icache_all)
.popsection
.pushsection .text.__asm_invalidate_l3_dcache, "ax"
-ENTRY(__asm_invalidate_l3_dcache)
+WEAK(__asm_invalidate_l3_dcache)
mov x0, #0 /* return status as success */
ret
ENDPROC(__asm_invalidate_l3_dcache)
- .weak __asm_invalidate_l3_dcache
.popsection
.pushsection .text.__asm_flush_l3_dcache, "ax"
-ENTRY(__asm_flush_l3_dcache)
+WEAK(__asm_flush_l3_dcache)
mov x0, #0 /* return status as success */
ret
ENDPROC(__asm_flush_l3_dcache)
- .weak __asm_flush_l3_dcache
.popsection
.pushsection .text.__asm_invalidate_l3_icache, "ax"
-ENTRY(__asm_invalidate_l3_icache)
+WEAK(__asm_invalidate_l3_icache)
mov x0, #0 /* return status as success */
ret
ENDPROC(__asm_invalidate_l3_icache)
- .weak __asm_invalidate_l3_icache
.popsection
/*