Skip to content

Conversation

@kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Dec 2, 2025

No description provided.

A goto label that is not used when built with
CONFIG_ZEPHYR_DP_SCHEDULER=n causes build errors. Rework
the code to handle the error without a conditional jump
label.

Fixes: c30f5bc ("ipc4: helper: Fix error handling in ipc_comp_connect")
Suggested-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Only use Zephyr heap definitions when building with Zephyr.

Fixes: 9ff0a7a ("alloc: sof_heap: Add missing support for shared buffers in sof_heap_alloc")
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Copilot AI review requested due to automatic review settings December 2, 2025 12:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes build issues for non-Zephyr builds (testbench and similar environments) by addressing two separate problems: an incorrect error handling flow that used a removed label, and improper access to Zephyr-specific struct fields.

  • Replaces goto with direct error handling in IPC4 connection code
  • Guards Zephyr-specific heap initialization fields with preprocessor directives

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/ipc/ipc4/helper.c Fixes error handling by removing goto to non-existent label and returning error directly
src/audio/module_adapter/module_adapter.c Guards Zephyr-specific heap struct field accesses with __ZEPHYR__ ifdef

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

is_cached() is not available in posix Zephyr builds (like fuzzer).
Use standard Zephyr interface for cache primitives instead.

Fixes: 9ff0a7a ("alloc: sof_heap: Add missing support for shared buffers in sof_heap_alloc")
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i kv2019i requested a review from dabekjakub as a code owner December 2, 2025 12:07
@kv2019i kv2019i changed the title Two build fixes to non-Zephyr builds (testbench and friends) Three build fixes to non-Zephyr builds (testbench and friends) Dec 2, 2025
Copy link
Collaborator

@singalsu singalsu left a comment

Choose a reason for hiding this comment

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

Thanks, this works for me!

@lgirdwood lgirdwood merged commit 6ee638f into thesofproject:main Dec 2, 2025
40 of 42 checks passed
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.

5 participants