]> git.proxmox.com Git - mirror_zfs.git/commitdiff
blkg_tryget config test: initialize struct
authorMathieu Velten <matmaul@gmail.com>
Tue, 13 Oct 2020 23:36:36 +0000 (01:36 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Oct 2020 23:36:36 +0000 (16:36 -0700)
Missing struct initialization in a config test results in the
interface being incorrectly detected.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Mathieu Velten <matmaul@gmail.com>
Closes #10713
Closes #11049

config/kernel-bio.m4

index afa1f1cabeb01f12f570f35f5ef2d036c1eb575a..534282780d3eaec8f95e5bfcaaa89a08df3d994f 100644 (file)
@@ -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])