diff options
author | Brian Behlendorf <[email protected]> | 2021-11-05 17:17:03 -0700 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2021-11-05 07:51:21 -0700 |
commit | 22b0891dbb6af5663201a035ab759d1f51fef3cd (patch) | |
tree | c4c13e2bf65f7825a96267d6085ca400b1cae75c /config | |
parent | 0e537a019551cfce70960476f0fdf0d0de23eb5d (diff) |
Linux 5.16 compat: submit_bio()
The submit_bio() prototype has changed again. The version is 5.16
still only expects a single argument but the return type has changed
to void. Since we never used the returned value before update the
configure check to detect both single arg versions.
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #12725
Diffstat (limited to 'config')
-rw-r--r-- | config/kernel-bio.m4 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/kernel-bio.m4 b/config/kernel-bio.m4 index d8692bd39..aad4d31cf 100644 --- a/config/kernel-bio.m4 +++ b/config/kernel-bio.m4 @@ -294,9 +294,8 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BIO_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); + (void) submit_bio(bio); ]) ]) |