Merge tag 'for-5.8/drivers-2020-06-01' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / fs / block_dev.c
index 632538d..47860e5 100644 (file)
@@ -2164,18 +2164,6 @@ const struct file_operations def_blk_fops = {
        .fallocate      = blkdev_fallocate,
 };
 
-int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)
-{
-       int res;
-       mm_segment_t old_fs = get_fs();
-       set_fs(KERNEL_DS);
-       res = blkdev_ioctl(bdev, 0, cmd, arg);
-       set_fs(old_fs);
-       return res;
-}
-
-EXPORT_SYMBOL(ioctl_by_bdev);
-
 /**
  * lookup_bdev  - lookup a struct block_device by name
  * @pathname:  special file representing the block device