From b3a216fba0a2f0c0b8691e07faf431606d6acfad Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Wed, 14 Oct 2020 01:36:36 +0200 Subject: [PATCH] blkg_tryget config test: initialize struct Missing struct initialization in a config test results in the interface being incorrectly detected. Reviewed-by: Brian Behlendorf Reviewed-by: Adam Moss Signed-off-by: Mathieu Velten Closes #10713 Closes #11049 --- config/kernel-bio.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/kernel-bio.m4 b/config/kernel-bio.m4 index afa1f1cabe..534282780d 100644 --- a/config/kernel-bio.m4 +++ b/config/kernel-bio.m4 @@ -344,7 +344,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BLKG_TRYGET], [ #include #include ],[ - struct blkcg_gq blkg __attribute__ ((unused)); + struct blkcg_gq blkg __attribute__ ((unused)) = {}; bool rc __attribute__ ((unused)); rc = blkg_tryget(&blkg); ], [], [$ZFS_META_LICENSE])