diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-13 07:53:17 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-14 18:27:56 +0200 |
commit | 900d156bac2bc474cf7c7bee4efbc6c83ec5ae58 (patch) | |
tree | 364ba819cd2949bbeded85f19c62fc969f1464ed /include | |
parent | ext4: only initialize mmp_bdevname once (diff) | |
download | linux-900d156bac2bc474cf7c7bee4efbc6c83ec5ae58.tar.xz linux-900d156bac2bc474cf7c7bee4efbc6c83ec5ae58.zip |
block: remove bdevname
Replace the remaining calls of bdevname with snprintf using the %pg
format specifier.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220713055317.1888500-10-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 22c477fadc0f..2775763c51b9 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1457,7 +1457,6 @@ static inline void bio_end_io_acct(struct bio *bio, unsigned long start_time) int bdev_read_only(struct block_device *bdev); int set_blocksize(struct block_device *bdev, int size); -const char *bdevname(struct block_device *bdev, char *buffer); int lookup_bdev(const char *pathname, dev_t *dev); void blkdev_show(struct seq_file *seqf, off_t offset); |