Skip to content

Commit 0b2ead0

Browse files
committed
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 <rtos/panic.h> 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 <seppo.ingalsuo@linux.intel.com>
1 parent f3732b2 commit 0b2ead0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/audio/stft_process/stft_process-generic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <sof/audio/format.h>
66
#include <sof/common.h>
7-
#include <assert.h>
7+
#include <rtos/panic.h>
88
#include <stdint.h>
99
#include "stft_process.h"
1010

‎src/audio/stft_process/stft_process-hifi3.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <sof/audio/format.h>
1515
#include <sof/common.h>
16-
#include <assert.h>
16+
#include <rtos/panic.h>
1717
#include <stdint.h>
1818
#include "stft_process.h"
1919

0 commit comments

Comments
 (0)