From 93d4fad8b18b4199385e7a157bee4fa3e2778ddf Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Fri, 17 Apr 2026 15:38:00 +0200 Subject: [PATCH] fix(esp_hw_support): use elif __riscv guard in spinlock.h spinlock.h used #else to include riscv/rv_utils.h for all non-Xtensa targets. On Linux host (neither __XTENSA__ nor __riscv defined), this pulls in a non-existent header. Change to #elif __riscv, matching esp_cpu.h's existing pattern. --- components/esp_hw_support/include/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hw_support/include/spinlock.h b/components/esp_hw_support/include/spinlock.h index 66f825efce4..e34f7564879 100644 --- a/components/esp_hw_support/include/spinlock.h +++ b/components/esp_hw_support/include/spinlock.h @@ -13,7 +13,7 @@ #if __XTENSA__ #include "xtensa/xtruntime.h" #include "xt_utils.h" -#else +#elif __riscv #include "riscv/rv_utils.h" #endif