diff options
author | Brian Behlendorf <[email protected]> | 2021-11-05 17:17:03 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-11-09 11:27:46 -0800 |
commit | 453c63e9b74cea42d45e0bd30c0771f98a7ce60d (patch) | |
tree | 5d211a11b33c31cac2227d4bf3481954af4fc8e9 /module | |
parent | 1e7d6348674afe8c9dfc03970ffcbc2deff912f8 (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 'module')
-rw-r--r-- | module/os/linux/zfs/vdev_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/os/linux/zfs/vdev_disk.c b/module/os/linux/zfs/vdev_disk.c index 59d062ebe..42144322a 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 } |