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
Fix spinlock headers #477
Fix spinlock headers #477
Conversation
The spinlock main header uses the `CONFIG_HAVE_SMP` and should therefore include `uk/config.h`. Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
Commit b85c0df ("plat/kvm/arm: Add alignament attribute to spinlock struct") introduces the `__align()` macro in the definition of the spinlock without including `essentials.h`. Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
To ensure that required macros are defined by the spinlock implementation, we add a preprocessor check. This commit further fixes the [in,out] parameters to comply with the doxygen specification. Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
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 on my side.
Reviewed-by: Răzvan Vîrtan virtanrazvan@gmail.com
Beep boop! I ran Unikraft's
Truncated logs starting from first warning 8970b67:
View complete logs | Learn more about Unikraft's coding style and contribution guidelines. |
@michpappas Also here. Could you have a quick look and approve if everything is fine from your side? |
Approved-by: Michalis Pappas mpappas@fastmail.fm |
Commit b85c0df ("plat/kvm/arm: Add alignament attribute to spinlock struct") introduces the `__align()` macro in the definition of the spinlock without including `essentials.h`. Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu> Reviewed-by: Răzvan Vîrtan <virtanrazvan@gmail.com> Approved-by: Michalis Pappas <mpappas@fastmail.fm> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #477
To ensure that required macros are defined by the spinlock implementation, we add a preprocessor check. This commit further fixes the [in,out] parameters to comply with the doxygen specification. Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu> Reviewed-by: Răzvan Vîrtan <virtanrazvan@gmail.com> Approved-by: Michalis Pappas <mpappas@fastmail.fm> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #477
Prerequisite checklist
checkpatch.pl
on your commit series before opening this PR;Base target
arm64
and generic]Additional configuration
Description of changes
This PR adds some missing includes and checks to the spinlock headers as well as fixing spelling mistakes.
Thanks @Sairajkodilkar for pointing out the missing
essentials.h
! 😃