summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMathieu Velten <[email protected]>2020-10-14 01:36:36 +0200
committerGitHub <[email protected]>2020-10-13 16:36:36 -0700
commitb3a216fba0a2f0c0b8691e07faf431606d6acfad (patch)
tree6df16e557f4cf6b068d664083ce5906d056483f9 /config
parent4b59c195ffbaebfdd5f0971a54613c0ed7c42005 (diff)
blkg_tryget config test: initialize struct
Missing struct initialization in a config test results in the interface being incorrectly detected. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Adam Moss <[email protected]> Signed-off-by: Mathieu Velten <[email protected]> Closes #10713 Closes #11049
Diffstat (limited to 'config')
-rw-r--r--config/kernel-bio.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel-bio.m4 b/config/kernel-bio.m4
index afa1f1cab..534282780 100644
--- a/config/kernel-bio.m4
+++ b/config/kernel-bio.m4
@@ -344,7 +344,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BLKG_TRYGET], [
#include <linux/bio.h>
#include <linux/fs.h>
],[
- struct blkcg_gq blkg __attribute__ ((unused));
+ struct blkcg_gq blkg __attribute__ ((unused)) = {};
bool rc __attribute__ ((unused));
rc = blkg_tryget(&blkg);
], [], [$ZFS_META_LICENSE])