]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
block: remove a duplicate definition for bdev_read_only
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 16:09:22 +0000 (17:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Nov 2024 02:07:13 +0000 (19:07 -0700)
bdev_read_only is already defined as an inline function in blkdev.h.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20241119160932.1327864-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h

index 5270117d54ac92829fa767404b5cbcb3cea4a1be..8b4e4692e7fbfbc516570ee55400ff29ab387be8 100644 (file)
@@ -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);