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; }