From 21b69cfd5d563e1c25e0ea89e1aeb4a2d1577c64 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 27 Jul 2021 20:11:11 +0800 Subject: [PATCH] Replace all __attribute__((weak)) with weak_data/weak_function Signed-off-by: Xiang Xiao --- arch/arm/src/rtl8720c/ameba_heap.c | 2 +- arch/xtensa/src/esp32/esp32_spiram.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/rtl8720c/ameba_heap.c b/arch/arm/src/rtl8720c/ameba_heap.c index f4ae9714c5..7875351a6b 100644 --- a/arch/arm/src/rtl8720c/ameba_heap.c +++ b/arch/arm/src/rtl8720c/ameba_heap.c @@ -59,7 +59,7 @@ extern uint32_t __sram_end__; * address. */ -const uintptr_t __attribute__((weak)) g_idle_topstack = +const uintptr_t weak_data g_idle_topstack = ((uintptr_t)&__stack); /**************************************************************************** diff --git a/arch/xtensa/src/esp32/esp32_spiram.c b/arch/xtensa/src/esp32/esp32_spiram.c index 4276219cbd..c95f73a78f 100644 --- a/arch/xtensa/src/esp32/esp32_spiram.c +++ b/arch/xtensa/src/esp32/esp32_spiram.c @@ -90,7 +90,7 @@ static bool spiram_inited = false; * no memory is reserved if no himem function is used. */ -size_t __attribute__((weak)) esp_himem_reserved_area_size(void) +size_t weak_function esp_himem_reserved_area_size(void) { return 0; }