4 dnl # The bio_set_dev() helper was introduced as part of the transition
5 dnl # to have struct gendisk in struct bio.
7 AC_DEFUN([ZFS_AC_KERNEL_BIO_SET_DEV], [
8 AC_MSG_CHECKING([whether bio_set_dev() exists])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/bio.h>
13 struct block_device *bdev = NULL;
14 struct bio *bio = NULL;
15 bio_set_dev(bio, bdev);
18 AC_DEFINE(HAVE_BIO_SET_DEV, 1, [bio_set_dev() exists])