From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 5/5] ARM64: cache: use WEAK() for v8_flush_l3_cache stub
Date: Fri, 4 Sep 2026 09:59:17 +0200 [thread overview]
Message-ID: <20260904080025.147376-6-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20260904080025.147376-1-a.fatoum@pengutronix.de>
From: Ahmad Fatoum <a.fatoum@barebox.org>
clang's integrated assembler warns when a symbol is made weak after
being defined global:
warning: v8_flush_l3_cache changed binding to STB_WEAK
Use WEAK() from linkage.h, which emits .weak before the label.
Assisted-by: Claude:fable-5
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
arch/arm/cpu/cache-armv8.S | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm/cpu/cache-armv8.S b/arch/arm/cpu/cache-armv8.S
index e6f50886f924..b381da5e34d0 100644
--- a/arch/arm/cpu/cache-armv8.S
+++ b/arch/arm/cpu/cache-armv8.S
@@ -229,8 +229,7 @@ ENTRY(v8_invalidate_icache_all)
ENDPROC(v8_invalidate_icache_all)
.section .text.v8_flush_l3_cache
-ENTRY(v8_flush_l3_cache)
+WEAK(v8_flush_l3_cache)
mov x0, #0 /* return status as success */
ret
ENDPROC(v8_flush_l3_cache)
- .weak v8_flush_l3_cache
--
2.47.3
next prev parent reply other threads:[~2026-09-04 8:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 7:59 [PATCH 0/5] clang: more warning and error fixes Ahmad Fatoum
2026-09-04 7:59 ` [PATCH 1/5] kbuild: emit asm-offsets markers as .ascii strings Ahmad Fatoum
2026-09-04 7:59 ` [PATCH 2/5] scripts: imx9image: fix warnings reported by clang Ahmad Fatoum
2026-09-04 7:59 ` [PATCH 3/5] kbuild: disable -Wunused-but-set-variable after -Wall Ahmad Fatoum
2026-09-04 7:59 ` [PATCH 4/5] kbuild: disable -Winitializer-overrides for clang Ahmad Fatoum
2026-09-04 7:59 ` Ahmad Fatoum [this message]
2026-09-04 9:44 ` [PATCH 0/5] clang: more warning and error fixes Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260904080025.147376-6-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox