Skip to content

Commit 2de9ff9

Browse files
committed
Minor fix to configure on s390x
configure on s390x has a key check fail with an error about a variable being used uninitialized. So let's initialize it. Signed-off-by: Rich Ercolani <[email protected]>
1 parent c71a2bb commit 2de9ff9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

config/kernel-bdi.m4

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BDI], [
66
#include <linux/fs.h>
77
struct super_block sb;
88
], [
9-
char *name = "bdi";
10-
atomic_long_t zfs_bdi_seq;
11-
int error __attribute__((unused)) =
12-
super_setup_bdi_name(&sb, "%.28s-%ld", name,
13-
atomic_long_inc_return(&zfs_bdi_seq));
9+
10+
char *name = "bdi";
11+
atomic_long_t zfs_bdi_seq;
12+
int error __attribute__((unused));
13+
atomic_long_set(&zfs_bdi_seq, 0);
14+
error =
15+
super_setup_bdi_name(&sb, "%.28s-%ld", name,
16+
atomic_long_inc_return(&zfs_bdi_seq));
1417
])
1518
1619
ZFS_LINUX_TEST_SRC([bdi_setup_and_register], [

0 commit comments

Comments
 (0)