]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-submit_bio.m4
Move more zfs test tools to zfs-test package (Closes: #868653)
[mirror_zfs-debian.git] / config / kernel-submit_bio.m4
CommitLineData
87dac73d
AX
1dnl #
2dnl # 4.8 API change
3dnl # The rw argument has been removed from submit_bio/submit_bio_wait.
4dnl # Callers are now expected to set bio->bi_rw instead of passing it in.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_SUBMIT_BIO], [
7 AC_MSG_CHECKING([whether submit_bio() wants 1 arg])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/bio.h>
10 ],[
11 blk_qc_t blk_qc;
12 struct bio *bio = NULL;
13 blk_qc = submit_bio(bio);
14 ],[
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_1ARG_SUBMIT_BIO, 1, [submit_bio() wants 1 arg])
17 ],[
18 AC_MSG_RESULT(no)
19 ])
20])