public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: Unexport blkdev_get_zone_info()
@ 2025-11-05 19:35 Bart Van Assche
  2025-11-05 19:45 ` Jens Axboe
  2025-11-05 19:47 ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Bart Van Assche @ 2025-11-05 19:35 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Christoph Hellwig, Damien Le Moal, Bart Van Assche,
	Johannes Thumshirn, Hannes Reinecke, Chaitanya Kulkarni,
	Martin K. Petersen

Unexport blkdev_get_zone_info() because it has no callers outside the
block layer.

Fixes: f2284eec5053 ("block: introduce blkdev_get_zone_info()")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 block/blk-zoned.c      | 3 +--
 include/linux/blkdev.h | 3 ---
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index bba64b427082..e3972db4bd66 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -914,7 +914,7 @@ static int blkdev_report_zone_fallback(struct block_device *bdev,
  *
  *    Returns 0 on success and a negative error code on failure.
  */
-int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
+static int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
 			 struct blk_zone *zone)
 {
 	struct gendisk *disk = bdev->bd_disk;
@@ -1001,7 +1001,6 @@ int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
 
 	return 0;
 }
-EXPORT_SYMBOL_GPL(blkdev_get_zone_info);
 
 /**
  * blkdev_report_zones_cached - Get cached zones information
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index f0ab02e0a673..7884f86e172f 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -436,9 +436,6 @@ typedef int (*report_zones_cb)(struct blk_zone *zone, unsigned int idx,
 int disk_report_zone(struct gendisk *disk, struct blk_zone *zone,
 		     unsigned int idx, struct blk_report_zones_args *args);
 
-int blkdev_get_zone_info(struct block_device *bdev, sector_t sector,
-			 struct blk_zone *zone);
-
 #define BLK_ALL_ZONES  ((unsigned int)-1)
 int blkdev_report_zones(struct block_device *bdev, sector_t sector,
 		unsigned int nr_zones, report_zones_cb cb, void *data);

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-06 12:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 19:35 [PATCH] block: Unexport blkdev_get_zone_info() Bart Van Assche
2025-11-05 19:45 ` Jens Axboe
2025-11-05 19:47 ` Christoph Hellwig
2025-11-05 19:50   ` Jens Axboe
2025-11-05 19:51     ` Christoph Hellwig
2025-11-05 19:56       ` Jens Axboe
2025-11-06 12:08         ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox