]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Linux 6.6 compat: fix configure error with clang (#15558)
authorJaron Kent-Dobias <kentdobias@users.noreply.github.com>
Tue, 28 Nov 2023 19:34:40 +0000 (20:34 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Nov 2023 19:34:40 +0000 (11:34 -0800)
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 <jaron@kent-dobias.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
config/kernel-inode-times.m4

index 412e13b47df588e79f9f0afcd7d3d57fe4ce1c08..aae95abf1720bd92f9393595566cada1b882a5ce 100644 (file)
@@ -47,7 +47,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [
                #include <linux/fs.h>
        ],[
                struct inode ip;
-               struct timespec64 ts;
+               struct timespec64 ts = {0};
 
                memset(&ip, 0, sizeof(ip));
                inode_set_ctime_to_ts(&ip, ts);