Skip to content

Commit e888810

Browse files
Christoph Hellwigaxboe
authored andcommitted
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 <[email protected]> Reviewed-by: John Garry <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent da77d9b commit e888810

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/linux/blkdev.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,6 @@ static inline void bio_end_io_acct(struct bio *bio, unsigned long start_time)
15861586
return bio_end_io_acct_remapped(bio, start_time, bio->bi_bdev);
15871587
}
15881588

1589-
int bdev_read_only(struct block_device *bdev);
15901589
int set_blocksize(struct file *file, int size);
15911590

15921591
int lookup_bdev(const char *pathname, dev_t *dev);

0 commit comments

Comments
 (0)