From: Bart Van Assche <bvanassche@acm.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Damien Le Moal <dlemoal@kernel.org>,
Bart Van Assche <bvanassche@acm.org>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>,
Hannes Reinecke <hare@suse.de>,
Chaitanya Kulkarni <kch@nvidia.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Subject: [PATCH] block: Unexport blkdev_get_zone_info()
Date: Wed, 5 Nov 2025 11:35:53 -0800 [thread overview]
Message-ID: <20251105193554.3169623-1-bvanassche@acm.org> (raw)
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);
next reply other threads:[~2025-11-05 19:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 19:35 Bart Van Assche [this message]
2025-11-05 19:45 ` [PATCH] block: Unexport blkdev_get_zone_info() 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251105193554.3169623-1-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=kch@nvidia.com \
--cc=linux-block@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox