[PATCH 10/19] ARM: renesas: Simplify weak symbols
Marek Vasut
marek.vasut+renesas at mailbox.org
Tue Feb 27 17:05:50 CET 2024
Simplify the weak symbols use in cpu_info.c by using the __weak macro.
The result is identical, but the syntax is much simpler. Furthermore,
drop three more rmobile* symbols which are now unused.
Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
Cc: Paul Barker <paul.barker.ct at bp.renesas.com>
Cc: Tom Rini <trini at konsulko.com>
---
arch/arm/mach-rmobile/cpu_info.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c
index 66ac6b3fcfb..2f9a4374a96 100644
--- a/arch/arm/mach-rmobile/cpu_info.c
+++ b/arch/arm/mach-rmobile/cpu_info.c
@@ -36,26 +36,20 @@ __weak const u8 *rzg_get_cpu_name(void)
return 0;
}
-static u32 __rmobile_get_cpu_type(void)
+__weak u32 renesas_get_cpu_type(void)
{
return 0x0;
}
-u32 renesas_get_cpu_type(void)
- __attribute__((weak, alias("__rmobile_get_cpu_type")));
-static u32 __rmobile_get_cpu_rev_integer(void)
+__weak u32 renesas_get_cpu_rev_integer(void)
{
return 0;
}
-u32 renesas_get_cpu_rev_integer(void)
- __attribute__((weak, alias("__rmobile_get_cpu_rev_integer")));
-static u32 __rmobile_get_cpu_rev_fraction(void)
+__weak u32 renesas_get_cpu_rev_fraction(void)
{
return 0;
}
-u32 renesas_get_cpu_rev_fraction(void)
- __attribute__((weak, alias("__rmobile_get_cpu_rev_fraction")));
/* CPU information table */
static const struct {
--
2.43.0
More information about the U-Boot
mailing list