mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
config/kernel-inode-times: initialize timespec
Usage of this variable uninitialized triggers -Werror,-Wuninitialized when compiled under clang for linux kernel 5.6, leading the build system to believe that the function is not declared. This commit initializes the variable to suppress the warning and fix the build for kernel 5.6 with clang. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Hiếu Lê <leorize+oss@disroot.org> Closes #10279 Closes #10281
This commit is contained in:
parent
6f3e1a4828
commit
3e5d41d807
@ -10,6 +10,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [
|
||||
struct timespec64 ts;
|
||||
struct inode ip;
|
||||
|
||||
memset(&ts, 0, sizeof(ts));
|
||||
ts = timestamp_truncate(ts, &ip);
|
||||
])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user