Skip to content

Commit 3ee77a4

Browse files
committed
schedule: zephyr_dp_sched_app: fix build error in release builds
Release build 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 3ee77a4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/schedule/zephyr_dp_schedule_application.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,13 @@ void scheduler_dp_internal_free(struct task *task)
413413

414414
static void scheduler_dp_thread_name_set(k_tid_t thread_id, struct processing_module *mod)
415415
{
416+
#ifdef CONFIG_THREAD_NAME
416417
char name[CONFIG_THREAD_MAX_NAME_LEN];
417418

418419
snprintf(name, sizeof(name), "DP:%#x", mod->dev->ipc_config.id);
419420

420421
k_thread_name_set(thread_id, name);
422+
#endif
421423
}
422424

423425
/* Called only in IPC context */

0 commit comments

Comments
 (0)