block: mark blkdev_get static
There are no users outside the core block code left now. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:

committed by
Jens Axboe

parent
36daaa98f7
commit
1fb1a2ad75
@@ -1616,7 +1616,7 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, void *holder,
|
|||||||
* RETURNS:
|
* RETURNS:
|
||||||
* 0 on success, -errno on failure.
|
* 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;
|
int ret, perm = 0;
|
||||||
|
|
||||||
@@ -1637,7 +1637,6 @@ bdput:
|
|||||||
bdput(bdev);
|
bdput(bdev);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(blkdev_get);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* blkdev_get_by_path - open a block device by name
|
* blkdev_get_by_path - open a block device by name
|
||||||
|
@@ -1981,7 +1981,6 @@ void blkdev_show(struct seq_file *seqf, off_t offset);
|
|||||||
#define BLKDEV_MAJOR_MAX 0
|
#define BLKDEV_MAJOR_MAX 0
|
||||||
#endif
|
#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,
|
struct block_device *blkdev_get_by_path(const char *path, fmode_t mode,
|
||||||
void *holder);
|
void *holder);
|
||||||
struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder);
|
struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder);
|
||||||
|
Reference in New Issue
Block a user