Skip to content

Conversation

@ottojo
Copy link
Contributor

@ottojo ottojo commented May 16, 2022

fixes #45697

@github-actions github-actions bot added the area: API Changes to public APIs label May 16, 2022
Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this PR.

Please review the Contribution Guidelines.

@ottojo ottojo requested a review from stephanosio May 16, 2022 16:59
Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1: UC3 Title does not follow [subsystem]: [subject] (and should not start with literal subsys:): "fix ring_buf designated initializer order for RING_BUF_DECLARE"
1: UC6 Body has no content, should at least have 1 line.

Please review https://docs.zephyrproject.org/latest/contribute/guidelines.html#commit-guidelines.

@stephanosio stephanosio added bug The issue is a bug, or the PR is fixing a bug area: C++ labels May 17, 2022
@stephanosio stephanosio added this to the v3.1.0 milestone May 17, 2022
@ottojo ottojo force-pushed the ringbuf-fix branch 2 times, most recently from 480c17a to 472dc2d Compare May 17, 2022 11:14
@ottojo ottojo requested a review from stephanosio May 17, 2022 11:46
Change order of designated initializers for ring_buf struct in the
RING_BUF_DECLARE macro, to match the order in the struct definition.
This fixes compilation when using C++, which requires using the same
order as in the struct definition.
Fixes zephyrproject-rtos#45697

Signed-off-by: Jonas Otto <[email protected]>
Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@carlescufi carlescufi merged commit a36995e into zephyrproject-rtos:main May 18, 2022
@ottojo ottojo deleted the ringbuf-fix branch May 18, 2022 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: C++ bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RING_BUF_DECLARE broken for C++

5 participants