summaryrefslogtreecommitdiffstats
path: root/config/kernel-submit_bio.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel-submit_bio.m4')
-rw-r--r--config/kernel-submit_bio.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/config/kernel-submit_bio.m4 b/config/kernel-submit_bio.m4
index da5f85ca7..cf80e9b83 100644
--- a/config/kernel-submit_bio.m4
+++ b/config/kernel-submit_bio.m4
@@ -3,15 +3,19 @@ dnl # 4.8 API change
dnl # The rw argument has been removed from submit_bio/submit_bio_wait.
dnl # Callers are now expected to set bio->bi_rw instead of passing it in.
dnl #
-AC_DEFUN([ZFS_AC_KERNEL_SUBMIT_BIO], [
- AC_MSG_CHECKING([whether submit_bio() wants 1 arg])
- ZFS_LINUX_TRY_COMPILE([
+AC_DEFUN([ZFS_AC_KERNEL_SRC_SUBMIT_BIO], [
+ ZFS_LINUX_TEST_SRC([submit_bio], [
#include <linux/bio.h>
],[
blk_qc_t blk_qc;
struct bio *bio = NULL;
blk_qc = submit_bio(bio);
- ],[
+ ])
+])
+
+AC_DEFUN([ZFS_AC_KERNEL_SUBMIT_BIO], [
+ AC_MSG_CHECKING([whether submit_bio() wants 1 arg])
+ ZFS_LINUX_TEST_RESULT([submit_bio], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_1ARG_SUBMIT_BIO, 1, [submit_bio() wants 1 arg])
],[