blkg_tryget config test: initialize struct
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
This commit is contained in:
parent
4b59c195ff
commit
b3a216fba0
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue