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 <jaron@kent-dobias.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
(cherry picked from commit d813aa8530)
This commit is contained in:
Jaron Kent-Dobias 2023-11-28 20:34:40 +01:00 committed by Tony Hutter
parent e68922faaa
commit 4b849db210
1 changed files with 1 additions and 1 deletions

View File

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