]>
Commit | Line | Data |
---|---|---|
bbb1b6ce BB |
1 | dnl # |
2 | dnl # 4.8 API change | |
3 | dnl # The rw argument has been removed from submit_bio/submit_bio_wait. | |
4 | dnl # Callers are now expected to set bio->bi_rw instead of passing it in. | |
5 | dnl # | |
6 | AC_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 | ]) |