diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index e74b1abd466c..db5f9277fea5 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -167,29 +167,8 @@ unsigned int _xtos_ints_off(unsigned int mask) return 0; } -/* Zephyr redefines log_message() and mtrace_printf() which leaves - * totally empty the .static_log_entries ELF sections for the - * sof-logger. This makes smex fail. Define at least one such section to - * fix the build when sof-logger is not used. - */ -static inline const void *smex_placeholder_f(void) -{ - _DECLARE_LOG_ENTRY(LOG_LEVEL_DEBUG, - "placeholder so .static_log.X are not all empty", - _TRACE_INV_CLASS, 0); - - return &log_entry; -} - -/* Need to actually use the function and export something otherwise the - * compiler optimizes everything away. - */ -const void *_smex_placeholder; - int task_main_start(struct sof *sof) { - _smex_placeholder = smex_placeholder_f(); - /* init default audio components */ sys_comp_init(sof);