summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Ercolani <[email protected]>2021-05-28 01:39:53 -0400
committerBrian Behlendorf <[email protected]>2021-05-28 09:01:24 -0700
commit9e06df8ab06a7d6b8e120ae3219e5196e28ace46 (patch)
tree5f212d372a678ea660d129ecdc646f56ee5b25a5
parent57e3b9c3ccf08b199784b1f5a9514deebbbc9e6d (diff)
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. Reviewed-by: Colin Ian King <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes #12126
-rw-r--r--config/kernel-bdi.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/config/kernel-bdi.m4 b/config/kernel-bdi.m4
index 9351df71b..9758863a9 100644
--- a/config/kernel-bdi.m4
+++ b/config/kernel-bdi.m4
@@ -8,7 +8,9 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BDI], [
], [
char *name = "bdi";
atomic_long_t zfs_bdi_seq;
- int error __attribute__((unused)) =
+ int error __attribute__((unused));
+ atomic_long_set(&zfs_bdi_seq, 0);
+ error =
super_setup_bdi_name(&sb, "%.28s-%ld", name,
atomic_long_inc_return(&zfs_bdi_seq));
])