* [PATCH] arm: armv8: Fix warning about redeclaring global functions as weak
@ 2021-06-29 23:33 Tom Rini
2021-07-10 1:08 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Tom Rini @ 2021-06-29 23:33 UTC (permalink / raw)
To: u-boot
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>
---
arch/arm/cpu/armv8/cache.S | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/arch/arm/cpu/armv8/cache.S b/arch/arm/cpu/armv8/cache.S
index 443d94c262a0..e04907dd8c0b 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
/*
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm: armv8: Fix warning about redeclaring global functions as weak
2021-06-29 23:33 [PATCH] arm: armv8: Fix warning about redeclaring global functions as weak Tom Rini
@ 2021-07-10 1:08 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2021-07-10 1:08 UTC (permalink / raw)
To: u-boot
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
On Tue, Jun 29, 2021 at 07:33:04PM -0400, Tom Rini wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-10 1:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 23:33 [PATCH] arm: armv8: Fix warning about redeclaring global functions as weak Tom Rini
2021-07-10 1:08 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.