Uh oh!
There was an error while loading. Please reload this page.
common.h: Prevent error when compiling with Clang - #7411
Conversation
Clang requires fields to have a constant size and does not support variable length array in structure causing build to to fail at compile_check() This change selects the compatible version of ALIGN_UP and ALIGN_DOWN macro when compiling with Clang. Signed-off-by: Nishal Kulkarni <nishalkulkarni@gmail.com>
sofci
commented
Apr 6, 2023
Can one of the admins verify this patch?
|
sys-pt1s
commented
Apr 6, 2023
Can one of the admins verify this patch? |
This comment was marked as outdated.
This comment was marked as outdated.
lgirdwood
commented
Apr 6, 2023
test this please |
kv2019i
commented
Apr 12, 2023
@wszypelt This one got stuck as well. |
lgirdwood
commented
Apr 24, 2023
wszypelt
commented
Apr 25, 2023
@lgirdwood good to merge |
kv2019i
commented
Apr 25, 2023
Test infra issue in https://sof-ci.01.org/sofpr/PR7411/build5584/devicetest/index.html , not blocking this PR. |
Which clang version does this solve a problem with? We've been routinely using |
Oh wait, I suspect @dcpleung should this be changed to More background: |
Clang requires fields to have a constant size and does not support variable length array in structure causing build to to fail at compile_check()
This change selects the compatible version of ALIGN_UP and ALIGN_DOWN macro when compiling with Clang.
While there's no official support for LLVM toolchain right now, this change should help in that direction.