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
plat/virtio: Fix vring_avail_event macro #1076
plat/virtio: Fix vring_avail_event macro #1076
Conversation
This code was imported and this occurrence of the type was not adjusted when the type name changed. Signed-off-by: Marco Schlumpp <marco@unikraft.io>
This attribute allows to opt-out of the standard C strict aliasing rule. Signed-off-by: Marco Schlumpp <marco@unikraft.io>
The macro violates the strict aliasing rules. By using the newly introduced may_alias attribute we can prevent miscompilations because of that. Signed-off-by: Marco Schlumpp <marco@unikraft.io>
069e0cf
to
8ce5677
Compare
Beep boop! I ran Unikraft's
Truncated logs starting from first warning ec39a62:
View complete logs | Learn more about Unikraft's coding style and contribution guidelines. |
…nt field Signed-off-by: Marco Schlumpp <marco@unikraft.io>
…nt field Signed-off-by: Marco Schlumpp <marco@unikraft.io>
…nt field Signed-off-by: Marco Schlumpp <marco@unikraft.io>
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.
Looks good, thanks!
Reviewed-by: Eduard Vintilă eduard.vintila47@gmail.com
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.
All good, thanks!
Reviewed-by: Rares Miculescu miculescur@gmail.com
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.
Approved-by: Razvan Deaconescu razvand@unikraft.io
This code was imported and this occurrence of the type was not adjusted when the type name changed. Signed-off-by: Marco Schlumpp <marco@unikraft.io> Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com> Reviewed-by: Rares Miculescu <miculescur@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> GiHub-Closes: #1076
This attribute allows to opt-out of the standard C strict aliasing rule. Signed-off-by: Marco Schlumpp <marco@unikraft.io> Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com> Reviewed-by: Rares Miculescu <miculescur@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> GiHub-Closes: #1076
The macro violates the strict aliasing rules. By using the newly introduced may_alias attribute we can prevent miscompilations because of that. Signed-off-by: Marco Schlumpp <marco@unikraft.io> Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com> Reviewed-by: Rares Miculescu <miculescur@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> GiHub-Closes: #1076
This code was imported and this occurrence of the type was not adjusted when the type name changed. Signed-off-by: Marco Schlumpp <marco@unikraft.io> Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com> Reviewed-by: Rares Miculescu <miculescur@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> GiHub-Closes: #1076
This attribute allows to opt-out of the standard C strict aliasing rule. Signed-off-by: Marco Schlumpp <marco@unikraft.io> Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com> Reviewed-by: Rares Miculescu <miculescur@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> GiHub-Closes: #1076
The macro violates the strict aliasing rules. By using the newly introduced may_alias attribute we can prevent miscompilations because of that. Signed-off-by: Marco Schlumpp <marco@unikraft.io> Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com> Reviewed-by: Rares Miculescu <miculescur@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> GiHub-Closes: #1076
Prerequisite checklist
checkpatch.uk
on your commit series before opening this PR;Base target
kvm
Additional configuration
Description of changes
This fixes the
vring_avail_event
to not cause miscompilations by violating the strict aliasing rules.