Skip to content

Commit

Permalink
blkg_tryget config test: initialize struct
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MatMaul authored Oct 13, 2020
1 parent 4b59c19 commit b3a216f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/kernel-bio.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit b3a216f

Please sign in to comment.