From 74d060cb7e465374590fa737eed3656690060cca Mon Sep 17 00:00:00 2001 From: Tiago Medicci Serrano Date: Tue, 10 Dec 2024 17:02:22 -0300 Subject: [PATCH] xtensa/esp32s3: Update the reserved size for struct __lock After https://github.com/apache/nuttx/pull/15075, the static assertion at `nuttx/arch/xtensa/src/esp32s3/esp32s3_libc_stubs.c` was being triggered when building any of the ESP32-S3's defconfigs. This commit updates the reserved size to reflect the changes introduced by the related PR. --- .../xtensa/src/common/espressif/platform_include/sys/lock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/xtensa/src/common/espressif/platform_include/sys/lock.h b/arch/xtensa/src/common/espressif/platform_include/sys/lock.h index 7aa5e9b8efca7..c289861bb4931 100644 --- a/arch/xtensa/src/common/espressif/platform_include/sys/lock.h +++ b/arch/xtensa/src/common/espressif/platform_include/sys/lock.h @@ -43,12 +43,12 @@ struct __lock { #ifdef CONFIG_PRIORITY_INHERITANCE # if CONFIG_SEM_PREALLOCHOLDERS > 0 - int reserved[5]; + int reserved[6]; # else - int reserved[8]; + int reserved[9]; # endif #else - int reserved[4]; + int reserved[5]; #endif };