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:
alaviss
2020-05-04 22:25:48 +00:00
committed by GitHub
parent 6f3e1a4828
commit 3e5d41d807
+1
View File
@@ -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);
])