Skip to content

Commit f3631ae

Browse files
Zhang ZekunMikulas Patocka
authored andcommitted
dm: Remove unused declaration and empty definition "dm_zone_map_bio"
dm_zone_map_bio() has beed removed since commit f211268 ("dm: Use the block layer zone append emulation"), remain the declaration unused in header files. So, let's remove this unused declaration and empty definition. Signed-off-by: Zhang Zekun <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent 5d3691a commit f3631ae

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/md/dm.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ void dm_zone_endio(struct dm_io *io, struct bio *clone);
109109
int dm_blk_report_zones(struct gendisk *disk, sector_t sector,
110110
unsigned int nr_zones, report_zones_cb cb, void *data);
111111
bool dm_is_zone_write(struct mapped_device *md, struct bio *bio);
112-
int dm_zone_map_bio(struct dm_target_io *io);
113112
int dm_zone_get_reset_bitmap(struct mapped_device *md, struct dm_table *t,
114113
sector_t sector, unsigned int nr_zones,
115114
unsigned long *need_reset);
@@ -119,10 +118,6 @@ static inline bool dm_is_zone_write(struct mapped_device *md, struct bio *bio)
119118
{
120119
return false;
121120
}
122-
static inline int dm_zone_map_bio(struct dm_target_io *tio)
123-
{
124-
return DM_MAPIO_KILL;
125-
}
126121
#endif
127122

128123
/*

0 commit comments

Comments
 (0)