From 0b2ead082e44780f8f648cb60eae45550ea4010f Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Wed, 12 Aug 2026 20:45:09 +0300 Subject: [PATCH] audio: stft_process: switch assert include to rtos/panic.h The two stft_process source files use lassert.h from libc, which under a newlib-based Zephyr build (e.g. MTL with COMMON_LIBC_MALLOC_ARENA_SIZE set) expands assert() to a __assert_no_args() call whose implementation is not linked into the SOF firmware image. Enabling COMP_STFT_PROCESS on such a build therefore fails at link time with an "undefined reference to __assert_no_args" error. All other SOF audio modules includes instead, which maps assert() to Zephyr's __ASSERT_NO_MSG in firmware builds and to sof_panic() in the posix testbench. Signed-off-by: Seppo Ingalsuo --- src/audio/stft_process/stft_process-generic.c | 2 +- src/audio/stft_process/stft_process-hifi3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/stft_process/stft_process-generic.c b/src/audio/stft_process/stft_process-generic.c index 5241c372261f..cbbe859b3e9a 100644 --- a/src/audio/stft_process/stft_process-generic.c +++ b/src/audio/stft_process/stft_process-generic.c @@ -4,7 +4,7 @@ #include #include -#include +#include #include #include "stft_process.h" diff --git a/src/audio/stft_process/stft_process-hifi3.c b/src/audio/stft_process/stft_process-hifi3.c index 6cf7c3dc7e85..efcef00ca474 100644 --- a/src/audio/stft_process/stft_process-hifi3.c +++ b/src/audio/stft_process/stft_process-hifi3.c @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include "stft_process.h"