From 4b849db210d1acff5f9eed27029bf4a2e28a348a Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 28 Nov 2023 20:34:40 +0100 Subject: [PATCH] Linux 6.6 compat: fix configure error with clang (#15558) With Linux v6.6.x and clang 16, a configure step fails on a warning that later results in an error while building, due to 'ts' being uninitialized. Add a trivial initialization to silence the warning. Signed-off-by: Jaron Kent-Dobias Reviewed-by: Tony Hutter (cherry picked from commit d813aa85309a06310e7dda3be87fd139f8b6035c) --- config/kernel-inode-times.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/kernel-inode-times.m4 b/config/kernel-inode-times.m4 index 412e13b47d..aae95abf17 100644 --- a/config/kernel-inode-times.m4 +++ b/config/kernel-inode-times.m4 @@ -47,7 +47,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [ #include ],[ struct inode ip; - struct timespec64 ts; + struct timespec64 ts = {0}; memset(&ip, 0, sizeof(ip)); inode_set_ctime_to_ts(&ip, ts);