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

arch/x86_64: Paging code - Enclose params of function-like macros in brackets #987

Closed
wants to merge 1 commit into from

Conversation

c7stef
Copy link
Contributor

@c7stef c7stef commented Jul 23, 2023

Minor improvement in paging code: enclosed params of function-like macros in brackets to account for expressions that mess with operator precedence where the param is used within the macro.

@c7stef c7stef requested a review from a team as a code owner July 23, 2023 18:46
@razvand razvand self-assigned this Jul 24, 2023
@razvand razvand added area/arch Unikraft Architecture kind/quick-fix Issue is a quick fix lang/c Issues or PRs to do with C/C++ arch/x86_64 topic/mm Topics pertaining to memory management labels Jul 24, 2023
@razvand razvand added this to the v0.14.0 (Prometheus) milestone Jul 24, 2023
@razvand razvand removed the request for review from a team July 24, 2023 19:08
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Hi, @cppstef , please follow the guidelines on formatting your commit. Please also add a detailed description to motivate your changes.

@unikraft-bot
Copy link
Member

Checkpatch passed

Beep boop! I ran Unikraft's checkpatch.pl support script on your pull request and it all looks good!

SHA commit checkpatch
ca08cb4 arch/x86_64: Enclose macro params in paging code

Copy link
Contributor

@RaduNichita RaduNichita left a comment

Choose a reason for hiding this comment

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

Nice work, @cppstef

Please sign off with your real email address in the commit message. For now, it is something default, provided by Github.

You can find more information here about how to do that.

Enclose parameters of function-like macros in brackets in x86_64 paging
code to avoid potential unwanted operator precedence consequences after
macro expansion.

Signed-off-by: Cosmin Popa <cosmin7popa@gmail.com>
Copy link
Contributor

@RaduNichita RaduNichita left a comment

Choose a reason for hiding this comment

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

All good from my side.

Reviewed-by: Radu Nichita radunichita99@gmail.com

Copy link
Contributor

@flpostolache flpostolache left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you!

Reviewed-by: Florin Postolache florin.postolache.of@gmail.com

Copy link
Contributor

@razvand razvand left a 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

@unikraft-bot unikraft-bot added the ci/merged Merged by CI label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch/x86_64 area/arch Unikraft Architecture ci/merged Merged by CI kind/quick-fix Issue is a quick fix lang/c Issues or PRs to do with C/C++ topic/mm Topics pertaining to memory management
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

5 participants