Skip to content

Commit 1c2850d

Browse files
committed
schedule: zephyr_dp_sched_app: fix build error in release builds
Release builds fail when building with DP user-space implementation. Build fails as CONFIG_THREAD_MAX_NAME_LEN is not defined. Problem not affecting when building with debug enabled, and/or configurations where the feature is disabled. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 1a0f791 commit 1c2850d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/schedule/zephyr_dp_schedule_application.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ void scheduler_dp_internal_free(struct task *task)
411411
mod_free(pdata->mod, container_of(task, struct scheduler_dp_task_memory, task));
412412
}
413413

414+
#ifdef CONFIG_THREAD_NAME
414415
static void scheduler_dp_thread_name_set(k_tid_t thread_id, struct processing_module *mod)
415416
{
416417
char name[CONFIG_THREAD_MAX_NAME_LEN];
@@ -419,6 +420,10 @@ static void scheduler_dp_thread_name_set(k_tid_t thread_id, struct processing_mo
419420

420421
k_thread_name_set(thread_id, name);
421422
}
423+
#else
424+
/* k_thread_name_set() is a no-op so skip constructing a thread name */
425+
#define scheduler_dp_thread_name_set(x, y)
426+
#endif
422427

423428
/* Called only in IPC context */
424429
int scheduler_dp_task_init(struct task **task, const struct sof_uuid_entry *uid,

0 commit comments

Comments
 (0)