Linux 6.6 compat: fix uninitialized timespec for LLVM #15559
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit fe9d409 ("Linux 6.6 compat: use inode_get/set_ctime*(...)") adds compatibility with Linux v6.6 but people using the LLVM toolchain for their kernels encounter kabi check failure due to uninitialized
ts
:Similar incident was fixed with commit 3e5d41d ("config/kernel-inode-times: initialize timespec").
Follow it and initialize
ts
.Fixes: fe9d409 ("Linux 6.6 compat: use inode_get/set_ctime*(...)")
Motivation and Context
Using the latest OpenZFS with Linux v6.6 built with LLVM 17 toolchain breaks autoconf and therefore the kernel module build.
Description
Similar issue was handled before. This commit follows the previous commit's patch and initializes
struct timespec64 ts
for LLVM compiler.How Has This Been Tested?
Build-tested with Linux v6.6 using the LLVM 17 toolchain and checked ZFS module loads and behaves correctly.
Types of changes
Checklist:
Signed-off-by
.