]> www.infradead.org Git - users/hch/block.git/commitdiff
block: remove a superflous ifdef in blkdev.h
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Jun 2022 13:50:41 +0000 (15:50 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 5 Jul 2022 10:01:22 +0000 (12:01 +0200)
It doesn't hurt to always have the blk_zone_cond_str prototype, and the
two inlines can also be defined unconditionally.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
include/linux/blkdev.h

index b9a94c53c6cd3d92720f5ccac4b46f867d511ce1..270cd0c552924d657c90578fc89be913da6faa34 100644 (file)
@@ -899,8 +899,6 @@ static inline struct request_queue *bdev_get_queue(struct block_device *bdev)
        return bdev->bd_queue;  /* this is never NULL */
 }
 
-#ifdef CONFIG_BLK_DEV_ZONED
-
 /* Helper to convert BLK_ZONE_ZONE_XXX to its string format XXX */
 const char *blk_zone_cond_str(enum blk_zone_cond zone_cond);
 
@@ -915,7 +913,6 @@ static inline unsigned int bio_zone_is_seq(struct bio *bio)
        return blk_queue_zone_is_seq(bdev_get_queue(bio->bi_bdev),
                                     bio->bi_iter.bi_sector);
 }
-#endif /* CONFIG_BLK_DEV_ZONED */
 
 /*
  * Return how much of the chunk is left to be used for I/O at a given offset.