Skip to content

Commit

Permalink
Linux 6.6 compat: fix configure error with clang (openzfs#15558)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
  • Loading branch information
kentdobias authored and tonyhutter committed Nov 28, 2023
1 parent 3b267e7 commit d813aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/kernel-inode-times.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d813aa8

Please sign in to comment.