Skip to content

Commit 9793961

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove bio_devname
All callers are gone, so remove this wrapper. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20220304180105.409765-11-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 734294e commit 9793961

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

block/bio.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,6 @@ int bio_init_clone(struct block_device *bdev, struct bio *bio,
807807
}
808808
EXPORT_SYMBOL(bio_init_clone);
809809

810-
const char *bio_devname(struct bio *bio, char *buf)
811-
{
812-
return bdevname(bio->bi_bdev, buf);
813-
}
814-
EXPORT_SYMBOL(bio_devname);
815-
816810
/**
817811
* bio_full - check if the bio is full
818812
* @bio: bio to check

include/linux/bio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,6 @@ static inline void bio_release_pages(struct bio *bio, bool mark_dirty)
491491
__bio_release_pages(bio, mark_dirty);
492492
}
493493

494-
extern const char *bio_devname(struct bio *bio, char *buffer);
495-
496494
#define bio_dev(bio) \
497495
disk_devt((bio)->bi_bdev->bd_disk)
498496

0 commit comments

Comments
 (0)