From: Christoph Hellwig Date: Tue, 19 Nov 2024 16:09:22 +0000 (+0100) Subject: block: remove a duplicate definition for bdev_read_only X-Git-Tag: v6.13-rc1~10^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e888810bc4f471f85989a0991aff28d2ac9f783b;p=thirdparty%2Fkernel%2Flinux.git block: remove a duplicate definition for bdev_read_only bdev_read_only is already defined as an inline function in blkdev.h. Signed-off-by: Christoph Hellwig Reviewed-by: John Garry Reviewed-by: Martin K. Petersen Reviewed-by: Johannes Thumshirn Link: https://lore.kernel.org/r/20241119160932.1327864-6-hch@lst.de Signed-off-by: Jens Axboe --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 5270117d54ac9..8b4e4692e7fbf 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1586,7 +1586,6 @@ static inline void bio_end_io_acct(struct bio *bio, unsigned long start_time) return bio_end_io_acct_remapped(bio, start_time, bio->bi_bdev); } -int bdev_read_only(struct block_device *bdev); int set_blocksize(struct file *file, int size); int lookup_bdev(const char *pathname, dev_t *dev);