diff mbox series

[2/3] block: move blk_drop_partitions to blk.h

Message ID 20220124093913.742411-3-hch@lst.de (mailing list archive)
State New, archived
Headers show
Series [1/3] block: move disk_{block,unblock,flush}_events to blk.h | expand

Commit Message

Christoph Hellwig Jan. 24, 2022, 9:39 a.m. UTC
No need to have this declaration in a public header.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/blk.h           | 1 +
 include/linux/genhd.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

Comments

Chaitanya Kulkarni Jan. 26, 2022, 5:11 a.m. UTC | #1
On 1/24/22 1:39 AM, Christoph Hellwig wrote:
> No need to have this declaration in a public header.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
diff mbox series

Patch

diff --git a/block/blk.h b/block/blk.h
index 2cba50d7e6cb1..800c5ae387a0b 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -426,6 +426,7 @@  int bdev_add_partition(struct gendisk *disk, int partno, sector_t start,
 int bdev_del_partition(struct gendisk *disk, int partno);
 int bdev_resize_partition(struct gendisk *disk, int partno, sector_t start,
 		sector_t length);
+void blk_drop_partitions(struct gendisk *disk);
 
 int bio_add_hw_page(struct request_queue *q, struct bio *bio,
 		struct page *page, unsigned int len, unsigned int offset,
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 504f9a6674ace..aa4bd985dbe51 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -219,7 +219,6 @@  static inline u64 sb_bdev_nr_blocks(struct super_block *sb)
 }
 
 int bdev_disk_changed(struct gendisk *disk, bool invalidate);
-void blk_drop_partitions(struct gendisk *disk);
 
 struct gendisk *__alloc_disk_node(struct request_queue *q, int node_id,
 		struct lock_class_key *lkclass);