From 3d8a6fb676d6c5453e44469e20925374de01e06e Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Wed, 22 Sep 2021 17:21:40 +0200 Subject: [PATCH] esp32_spiram.c: Remove esp_himem_reserved_area_size from esp32_spiram.c file. This function is already defined in esp_himem and is used only when that file is built. We don't need another weak function. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/esp32/esp32_spiram.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_spiram.c b/arch/xtensa/src/esp32/esp32_spiram.c index 1d82a95d50..c6eef15d7e 100644 --- a/arch/xtensa/src/esp32/esp32_spiram.c +++ b/arch/xtensa/src/esp32/esp32_spiram.c @@ -77,16 +77,6 @@ static bool spiram_inited = false; * Private Functions ****************************************************************************/ -/* If no function in esp_himem.c is used, this function will be linked into - * the binary instead of the one in esp_himem.c, automatically making sure - * no memory is reserved if no himem function is used. - */ - -size_t weak_function esp_himem_reserved_area_size(void) -{ - return 0; -} - /**************************************************************************** * Public Functions ****************************************************************************/