-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Linux 5.0 compat: ASM_BUG macro #8725
Conversation
The 5.0 kernel defines the macro ASM_BUG. In order to prevent a conflict and build failure rename ASM_BUG to ZFS_ASM_BUG. This is currently only an issue on aarch64 but all instances of ASM_BUG we're renamed to avoid any future conflict on x86_64. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#8545
LGTM |
Codecov Report
@@ Coverage Diff @@
## master #8725 +/- ##
==========================================
- Coverage 78.82% 78.77% -0.06%
==========================================
Files 381 381
Lines 117630 117630
==========================================
- Hits 92724 92660 -64
- Misses 24906 24970 +64
Continue to review full report at Codecov.
|
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 change LGTM, and I see the ASM_BUG definition does exist in upstream Linux git.
I do have one question: I'm not a kernel developer, so take this with a big grain of salt, but is this macro doing anything useful (for readability/understandability) over just ASSERT(0)?
In fact, in the original version of this patch I did just replace |
The 5.0 kernel defines the macro ASM_BUG. In order to prevent a conflict and build failure rename ASM_BUG to ZFS_ASM_BUG. This is currently only an issue on aarch64 but all instances of ASM_BUG we're renamed to avoid any future conflict on x86_64. Reviewed-by: Tomohiro Kusumi <[email protected]> Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Chris Dunlop <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#8725 Issue openzfs#8545
The 5.0 kernel defines the macro ASM_BUG. In order to prevent a conflict and build failure rename ASM_BUG to ZFS_ASM_BUG. This is currently only an issue on aarch64 but all instances of ASM_BUG we're renamed to avoid any future conflict on x86_64. Reviewed-by: Tomohiro Kusumi <[email protected]> Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Chris Dunlop <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#8725 Issue openzfs#8545
Motivation and Context
Issue #8545
Description
The 5.0 kernel defines the macro ASM_BUG. In order to prevent a
conflict and build failure rename ASM_BUG to ZFS_ASM_BUG. This
is currently only an issue on aarch64 but all instances of
ASM_BUG we're renamed to avoid any future conflict on x86_64.
How Has This Been Tested?
Compiled on Fedora 29 using the 5.0.10-200.fc29.aarch64 kernel. A subset of the ZTS was then run successfully.
Types of changes
Checklist:
Signed-off-by
.