Repository navigation
Conversation
ecns_stream_init() returned early for an unconnected pin and left the channel count, frame size and sample format of the descriptor unset. GCC then reports -Wmaybe-uninitialized for the mic and ref descriptors in ecns_copy() and ecns_process(), which breaks every -Werror Intel build of this branch. Clear the whole descriptor before the NULL check. Users already gate on the buffer pointer, so this does not change behaviour. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SOF Zephyr module sets ARCH to "xtensa" for every non-POSIX build because that selects the SOF arch headers, so the ARCH check around -mlongcalls and -mtext-section-literals is always true. The aarch64 imx93 LP64 build then fails with aarch64-zephyr-elf-gcc: error: unrecognized command-line option '-mtext-section-literals' Use the Zephyr CONFIG_XTENSA Kconfig symbol, which reflects the real target architecture. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix three build breaks in the multi-KPB WoV changes: - The IPC4 output pin scan and the cross-pipeline detector prepare in kpb_prepare() were unconditional, so IPC3 builds failed with a redeclaration of 'sink' against the existing IPC3 sink search. Compile them only for IPC4, like the rest of the pin handling. - kpb_bind() kept the sink component in a variable that is only used by comp_dbg(), which clang reports as unused when debug logs are compiled out. The sink component was already checked for NULL in the same loop, so pass it to the log directly. - kpb_copy() printed the size_t copy_bytes with %u, which breaks the LP64 build. Use %zu. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the CI build failures on
intel/wov-d0i3-002. They show up on every PR against this branch, e.g. #11526.ecns_stream_init()left unconnected-pin descriptors partly uninitialised. That triggers-Wmaybe-uninitializedinecns_copy()/ecns_process(), which breaks all-WerrorIntel builds (tgl, tgl-h, mtl, lnl, ptl, wcl).-mlongcalls/-mtext-section-literalsoptions were guarded byARCH STREQUAL "xtensa". But SOF setsARCHtoxtensafor every non-POSIX build, so the guard was always true and broke the aarch64 imx93 LP64 build. Guard onCONFIG_XTENSAinstead.sinkand break the IPC3 builds (imx8*, IPC3 fuzz).comp_dbg(). It broke the clang stub build.%zufor asize_tin a log string. It broke LP64.Build testing
These commits on top of
cc693d42b, Zephyr SDK 1.0.1, with the same flags as CI (-Werror,--fatal-warnings,--warn-uninitialized). All of these pass:repro-build.conf: imx8, imx8x, imx8m, imx8ulp, mtl, lnl, ptl, tgl, tgl-h, wcl, imx95, and-dlnlshell_overlay.conf: tgl, mtl, lnlmodules.conf(llext): mtl, lnlimx93_evk/mimx9352/a55fuzz.sh -bstub build (IPC3, IPC4) and fuzzer build (IPC3, IPC4) with clang 21I have not run anything on hardware. The ECNS and IPC4 KPB changes don't change behaviour, and the IPC3 KPB path goes back to what
maindoes.🤖 Generated with Claude Code