Skip to content
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

BUGFIX: change unsuitable atomic_int to atomic_flag #472

Merged
merged 2 commits into from
Mar 14, 2023
Merged

BUGFIX: change unsuitable atomic_int to atomic_flag #472

merged 2 commits into from
Mar 14, 2023

Conversation

mzyx-hnu
Copy link
Contributor

@mzyx-hnu mzyx-hnu commented Mar 1, 2023

This patch tries to fix issue#471

@arnopo arnopo linked an issue Mar 3, 2023 that may be closed by this pull request
Copy link
Collaborator

@arnopo arnopo left a comment

Choose a reason for hiding this comment

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

The fix seems valid to me. I wonder if we need to have a atomic_flag_test_and_set on init, but that seems inline with the initial value set by atomic_init...

One cosmetic remark:
Please, split in 2 commits: one for the lib one` for the app. have look to existing commit to see commit subjet prefix to use

apps/examples/linux_rpc_demo/linux_rpc_demo.c Show resolved Hide resolved
lib/proxy/rpmsg_retarget.c Show resolved Hide resolved
@arnopo arnopo requested a review from edmooring March 3, 2023 13:42
Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

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

Not much to say here. I think this will be good to go with @arnopo comments addressed.

Change atomic_int to atomic_flag to solve the error
reported when compiling with clang.

Signed-off-by: Yunfei Li <liyunfei33@huawei.com>
Change atomic_int to atomic_flag to solve the error
reported when compiling with clang.

Signed-off-by: Yunfei Li <liyunfei33@huawei.com>
@mzyx-hnu
Copy link
Contributor Author

mzyx-hnu commented Mar 6, 2023

The fix seems valid to me. I wonder if we need to have a atomic_flag_test_and_set on init, but that seems inline with the initial value set by atomic_init...

One cosmetic remark: Please, split in 2 commits: one for the lib one` for the app. have look to existing commit to see commit subjet prefix to use

updated as the above comments

@mzyx-hnu mzyx-hnu requested a review from arnopo March 6, 2023 08:29
@arnopo arnopo requested a review from edmooring March 7, 2023 10:35
Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

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

Good to go.

@arnopo arnopo added this to the Release V2023.04 milestone Mar 14, 2023
@arnopo arnopo merged commit 1b97548 into OpenAMP:main Mar 14, 2023
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.

atomic_flag func error when compile with clang
3 participants