-
Notifications
You must be signed in to change notification settings - Fork 54
minerva-ag: Block vr access during update to prevent update fail #2639
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
base: main
Are you sure you want to change the base?
minerva-ag: Block vr access during update to prevent update fail #2639
Conversation
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D89447570. (Because this pull request was imported automatically, there will not be any future comments.) |
63a42dc to
36b1737
Compare
|
@Victor-Jhong has updated the pull request. You must reimport the pull request before landing. |
jamesatha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the relevant cppcheck error
| const uint8_t *comp_image_version_str, | ||
| uint8_t comp_image_version_str_len) | ||
| { | ||
| return PLDM_SUCCESS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we put an real implementation in here? If not, can you address the cppcheck error on line 1082?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning can be safely ignored; it's a limitation of static analysis, not an understanding of the weak function override mechanism.
36b1737 to
2b992d6
Compare
|
@Victor-Jhong has updated the pull request. You must reimport the pull request before landing. |
| resp_p->get_value = plat_force_update_flag; | ||
|
|
||
| exit: | ||
| *resp_len = sizeof(struct _sensor_polling_cmd_resp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be struct _force_update_flag_get_cmd_resp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right. Although both structs happen to have the same size (5 bytes), using the wrong struct name is semantically incorrect and could cause confusion.
Thanks for the review!
2b992d6 to
d63c513
Compare
|
@Victor-Jhong has updated the pull request. You must reimport the pull request before landing. |
d63c513 to
952bb05
Compare
|
@Victor-Jhong has updated the pull request. You must reimport the pull request before landing. |
952bb05 to
38fd1ff
Compare
|
@Victor-Jhong has updated the pull request. You must reimport the pull request before landing. |
Summary:
Test Plan: