Skip to content

Commit 38cf54e

Browse files
MatMaultonyhutter
authored andcommitted
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 openzfs#10713 Closes openzfs#11049
1 parent d7d0752 commit 38cf54e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/kernel-bio-tryget.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BLKG_TRYGET], [
1111
#include <linux/bio.h>
1212
#include <linux/fs.h>
1313
],[
14-
struct blkcg_gq blkg __attribute__ ((unused));
14+
struct blkcg_gq blkg __attribute__ ((unused)) = {};
1515
bool rc __attribute__ ((unused));
1616
rc = blkg_tryget(&blkg);
1717
], [], [$ZFS_META_LICENSE])

0 commit comments

Comments
 (0)