Skip to content

schedule: zephyr_dp_sched_app: fix build error in release builds#10954

Open
kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202606-fix-ptl-prod-build
Open

schedule: zephyr_dp_sched_app: fix build error in release builds#10954
kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202606-fix-ptl-prod-build

Conversation

@kv2019i

@kv2019i kv2019i commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

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.

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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a release-build compilation failure in the Zephyr DP user-space scheduler path by avoiding use of a thread-name-length Kconfig symbol when thread naming support is disabled.

Changes:

  • Guard DP thread naming code with #ifdef CONFIG_THREAD_NAME to prevent referencing CONFIG_THREAD_MAX_NAME_LEN when unavailable.

Comment on lines 414 to 423
static void scheduler_dp_thread_name_set(k_tid_t thread_id, struct processing_module *mod)
{
#ifdef CONFIG_THREAD_NAME
char name[CONFIG_THREAD_MAX_NAME_LEN];

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

k_thread_name_set(thread_id, name);
#endif
}

@jsarha jsarha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stupid that due to lacking CONFIG_THREAD_MAX_NAME_LEN definition we need to ifdef code out, bu it is what it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants