diff --git a/config/kernel-bio.m4 b/config/kernel-bio.m4 index d8692bd399..aad4d31cf2 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 ],[ - blk_qc_t blk_qc; struct bio *bio = NULL; - blk_qc = submit_bio(bio); + (void) submit_bio(bio); ]) ]) diff --git a/module/os/linux/zfs/vdev_disk.c b/module/os/linux/zfs/vdev_disk.c index c56fd3a6ff..fe9752a67c 100644 --- a/module/os/linux/zfs/vdev_disk.c +++ b/module/os/linux/zfs/vdev_disk.c @@ -433,9 +433,9 @@ static inline void vdev_submit_bio_impl(struct bio *bio) { #ifdef HAVE_1ARG_SUBMIT_BIO - submit_bio(bio); + (void) submit_bio(bio); #else - submit_bio(0, bio); + (void) submit_bio(0, bio); #endif }