]> www.infradead.org Git - users/hch/block.git/commitdiff
block: move the *blkdev_ioctl declarations out of blkdev.h
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 09:42:07 +0000 (11:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 09:42:07 +0000 (11:42 +0200)
These are only used inside of block/.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk.h
include/linux/genhd.h

index 38867b4c5c7ed6e2f254c9817934d2bf83894980..bca4ba1a1f8ddaa5bba74d6ba71178d955da4f34 100644 (file)
@@ -403,6 +403,10 @@ static inline void bio_clear_hipri(struct bio *bio)
        bio->bi_opf &= ~REQ_HIPRI;
 }
 
+int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
+               unsigned long arg);
+long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg);
+
 extern const struct address_space_operations def_blk_aops;
 
 #endif /* BLK_INTERNAL_H */
index c1639c16b74c3ac2544ebe7896e0dd3ba75ff6bd..082a3e5fd8fa196056ea74b9b4392ea8a8946f13 100644 (file)
@@ -280,10 +280,6 @@ bool bdev_check_media_change(struct block_device *bdev);
 int __invalidate_device(struct block_device *bdev, bool kill_dirty);
 void set_capacity(struct gendisk *disk, sector_t size);
 
-/* for drivers/char/raw.c: */
-int blkdev_ioctl(struct block_device *, fmode_t, unsigned, unsigned long);
-long compat_blkdev_ioctl(struct file *, unsigned, unsigned long);
-
 #ifdef CONFIG_BLOCK_HOLDER_DEPRECATED
 int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
 void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk);