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 4.20 compat: current_kernel_time() #8074
Conversation
Commit torvalds/linux@976516404 removed the current_kernel_time() function (and several others). All callers are expected to use current_kernel_time64(). Update the gethrestime_sec() wrapper accordingly. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
fwiw, I have two machines running 4.19.0 and they compiled and run okay. I can't see what version they added this to. |
|
Looks like this is post 4.19: |
Codecov Report
@@ Coverage Diff @@
## master #8074 +/- ##
==========================================
+ Coverage 78.39% 78.43% +0.03%
==========================================
Files 377 377
Lines 114494 114494
==========================================
+ Hits 89763 89804 +41
+ Misses 24731 24690 -41
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.
LGTM
While openzfs/spl@cd1b28e fixed the 4.20 current_kernel_time issues in spl as per openzfs#8074 in .07.x, current_kernel_time is still being used inside zpios-ctl.h in 0.7.x. I believe this may fix this issue in 0.7.x to allow it to compile successfully for kernel 4.2.0.
|
@tonyhutter FYI there is one more issue with getting 0.7.x to compile for Linux kernel 4.20. |
Commit torvalds/linux@976516404 removed the current_kernel_time() function (and several others). All callers are expected to use current_kernel_time64(). Update the gethrestime_sec() wrapper accordingly. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#8074
Motivation and Context
Compatibility with the latest kernels. See the following build failure.
http://build.zfsonlinux.org/builders/Kernel.org%20Built-in%20x86_64%20%28BUILD%29/builds/23324
Description
Commit torvalds/linux@976516404 removed the current_kernel_time()
function (and several others). All callers are expected to use
current_kernel_time64(). Update the gethrestime_sec() wrapper
accordingly.
How Has This Been Tested?
Locally compiled.
Types of changes
Checklist:
Signed-off-by.