-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
lib/nolibc: Fix & improve headers #1002
Conversation
Looks good to me! It seems like the checkpatch failed, but I am ready to approve once it passes. |
I believe it's a case of a false positive from a heuristic script: the values of the macros aren't "complex", rather very plain float literals in scientific notation. The '+' must be confusing the script's regexes, but it won't confuse the compiler's lexer. |
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.
Reviewed-by: Delia Pavel delia_maria.pavel@stud.acs.upb.ro
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.
This looks fine @andreittr, please rebase it on top of staging so the ci/cd tests can run.
This change fixes a typo in the `CHAR_BIT` constant in limits.h. Previously it was incorrectly spelled as `CHAR_BITS`. Signed-off-by: Andrei Tatar <andrei@unikraft.io>
This change adds the missing `*_C` integer literal macros to stdint.h. Signed-off-by: Andrei Tatar <andrei@unikraft.io>
This change adds float.h, along with arch-specific sub-headers, which define constants regarding floating-point numbers. Signed-off-by: Andrei Tatar <andrei@unikraft.io>
efdf1b4
to
c8da4c5
Compare
❗ Checkpatch failed Beep boop! I ran Unikraft's
Truncated logs starting from first error c8da4c5:
View complete logs | Learn more about Unikraft's coding style and contribution guidelines. |
@StefanJum, see this. The |
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: Stefan Jumarea stefanjumarea02@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 change adds the missing `*_C` integer literal macros to stdint.h. Signed-off-by: Andrei Tatar <andrei@unikraft.io> Reviewed-by: Delia Pavel <delia_maria.pavel@stud.acs.upb.ro> Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #1002
This change adds float.h, along with arch-specific sub-headers, which define constants regarding floating-point numbers. Signed-off-by: Andrei Tatar <andrei@unikraft.io> Reviewed-by: Delia Pavel <delia_maria.pavel@stud.acs.upb.ro> Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #1002
Description of changes
This PR addresses a couple of shortcomings in the headers provided with nolibc:
CHAR_BIT
being spelled asCHAR_BITS
stdint.h
float.h
+ dependencies)Prerequisite checklist
checkpatch.uk
on your commit series before opening this PR;Base target