Skip to content

ipc4: base_fw: Make Astate handler a function#10528

Merged
lgirdwood merged 1 commit intothesofproject:mainfrom
wjablon1:astate_fix
Feb 6, 2026
Merged

ipc4: base_fw: Make Astate handler a function#10528
lgirdwood merged 1 commit intothesofproject:mainfrom
wjablon1:astate_fix

Conversation

@wjablon1
Copy link
Contributor

@wjablon1 wjablon1 commented Feb 6, 2026

It turns out the current implementation of STATIC_ASSERT cannot be used as the first instruction of switch/case for all the supported compilers. Initially I wanted to fix the macro itself but it’s not that easy (mainly because the macro is used in both global and local contexts). So I decided to move the code to a separate function (this should work because we already have similar occurrences).

Moving Astate handler to a function because STATIC_ASSERT cannot be used
as the first instruction of switch/case block

Signed-off-by: Wojciech Jablonski <wojciech.jablonski@intel.com>
@lgirdwood lgirdwood merged commit d31370b into thesofproject:main Feb 6, 2026
35 of 52 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.

3 participants