fix compile warnings/errors
This commit is contained in:
@@ -1185,7 +1185,7 @@ static void dm_table_set_integrity(struct dm_table *t)
|
||||
|
||||
template_disk = dm_table_get_integrity_disk(t, true);
|
||||
if (template_disk)
|
||||
blk_integrity_register(dm_disk(t->md),
|
||||
(void) blk_integrity_register(dm_disk(t->md),
|
||||
blk_get_integrity(template_disk));
|
||||
else if (blk_integrity_is_initialized(dm_disk(t->md)))
|
||||
DMWARN("%s: device no longer has a valid integrity profile",
|
||||
|
||||
@@ -1057,7 +1057,7 @@ static struct bio *split_bvec(struct bio *bio, sector_t sector,
|
||||
clone->bi_flags |= 1 << BIO_CLONED;
|
||||
|
||||
if (bio_integrity(bio)) {
|
||||
bio_integrity_clone(clone, bio, GFP_NOIO, bs);
|
||||
(void) bio_integrity_clone(clone, bio, GFP_NOIO, bs);
|
||||
bio_integrity_trim(clone,
|
||||
bio_sector_offset(bio, idx, offset), len);
|
||||
}
|
||||
@@ -1084,7 +1084,7 @@ static struct bio *clone_bio(struct bio *bio, sector_t sector,
|
||||
clone->bi_flags &= ~(1 << BIO_SEG_VALID);
|
||||
|
||||
if (bio_integrity(bio)) {
|
||||
bio_integrity_clone(clone, bio, GFP_NOIO, bs);
|
||||
(void) bio_integrity_clone(clone, bio, GFP_NOIO, bs);
|
||||
|
||||
if (idx != bio->bi_idx || clone->bi_size < bio->bi_size)
|
||||
bio_integrity_trim(clone,
|
||||
|
||||
Reference in New Issue
Block a user