block: mark blkdev_get static blkdev_get-cleanups
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Sep 2020 10:37:22 +0000 (12:37 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 19 Sep 2020 05:20:26 +0000 (07:20 +0200)
There are no users outside the core block code left now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/block_dev.c
include/linux/blkdev.h

index 2898d69be6b3e472f64a2ece49bc832319be8528..6b9d19ffa5af7bc437e1a9dc0d00453ef8c4e53f 100644 (file)
@@ -1616,7 +1616,7 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, void *holder,
  * RETURNS:
  * 0 on success, -errno on failure.
  */
-int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder)
+static int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder)
 {
        int ret, perm = 0;
 
@@ -1637,7 +1637,6 @@ bdput:
        bdput(bdev);
        return ret;
 }
-EXPORT_SYMBOL(blkdev_get);
 
 /**
  * blkdev_get_by_path - open a block device by name
index 5bd96fbab9b4c8ba92c9c1bb806a7bbf20e02ade..141179950912240db2024d537a13f2a386e0a321 100644 (file)
@@ -1975,7 +1975,6 @@ void blkdev_show(struct seq_file *seqf, off_t offset);
 #define BLKDEV_MAJOR_MAX       0
 #endif
 
-int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder);
 struct block_device *blkdev_get_by_path(const char *path, fmode_t mode,
                void *holder);
 struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder);