-
Notifications
You must be signed in to change notification settings - Fork 349
common.h: Prevent error when compiling with Clang #7411
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
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>
|
Can one of the admins verify this patch?
|
|
Can one of the admins verify this patch? |
This comment was marked as outdated.
This comment was marked as outdated.
|
test this please |
|
@wszypelt This one got stuck as well. |
|
@lgirdwood good to merge |
|
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.