-
Notifications
You must be signed in to change notification settings - Fork 349
Three build fixes to non-Zephyr builds (testbench and friends) #10409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
There was a problem hiding this 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>
singalsu
left a comment
There was a problem hiding this 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!
No description provided.