summaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/vdo.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2024-02-05 21:04:17 -0500
committerMike Snitzer <snitzer@kernel.org>2024-02-20 13:43:18 -0500
commitff9199464886500bd0c3df4a5ebae4760607aeda (patch)
tree5bc04ab607ced6929a4d83106d71e5bf07539f5a /drivers/md/dm-vdo/vdo.c
parent3fa8e6ec07f7d326cbd9af2daa29b5fe3fb9eb12 (diff)
dm vdo: fix sparse 'warning: Using plain integer as NULL pointer'
Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com>
Diffstat (limited to 'drivers/md/dm-vdo/vdo.c')
-rw-r--r--drivers/md/dm-vdo/vdo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-vdo/vdo.c b/drivers/md/dm-vdo/vdo.c
index 1ead769f0150..e0eddd4007b8 100644
--- a/drivers/md/dm-vdo/vdo.c
+++ b/drivers/md/dm-vdo/vdo.c
@@ -889,7 +889,8 @@ int vdo_synchronous_flush(struct vdo *vdo)
int result;
struct bio bio;
- bio_init(&bio, vdo_get_backing_device(vdo), 0, 0, REQ_OP_WRITE | REQ_PREFLUSH);
+ bio_init(&bio, vdo_get_backing_device(vdo), NULL, 0,
+ REQ_OP_WRITE | REQ_PREFLUSH);
submit_bio_wait(&bio);
result = blk_status_to_errno(bio.bi_status);