vhost: remove unused paramete
authorLiming Wu <liming.wu@jaguarmicro.com>
Tue, 10 Jan 2023 02:44:45 +0000 (10:44 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:58 +0000 (19:26 -0500)
"enabled" is defined in vhost_init_device_iotlb,
but it is never used. Let's remove it.

Signed-off-by: Liming Wu <liming.wu@jaguarmicro.com>
Message-Id: <20230110024445.303-1-liming.wu@jaguarmicro.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Eugenio PĂ©rez <eperezma@redhat.com>
drivers/vhost/net.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h
drivers/vhost/vsock.c

index 4c538b30fd76ded5fb19b5a9b98ff9b409557a51..383f8f2ae13152b4fd7fefb499a7f8b9aa31980f 100644 (file)
@@ -1645,7 +1645,7 @@ static int vhost_net_set_features(struct vhost_net *n, u64 features)
                goto out_unlock;
 
        if ((features & (1ULL << VIRTIO_F_ACCESS_PLATFORM))) {
-               if (vhost_init_device_iotlb(&n->dev, true))
+               if (vhost_init_device_iotlb(&n->dev))
                        goto out_unlock;
        }
 
index 43c9770b86e5aeb6bcd9ef7788d197c64900271d..f11bdbe4c2c5ff712bd4fa929e77e8723a63c239 100644 (file)
@@ -1730,7 +1730,7 @@ long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *arg
 }
 EXPORT_SYMBOL_GPL(vhost_vring_ioctl);
 
-int vhost_init_device_iotlb(struct vhost_dev *d, bool enabled)
+int vhost_init_device_iotlb(struct vhost_dev *d)
 {
        struct vhost_iotlb *niotlb, *oiotlb;
        int i;
index 790b296271f1e465c503cca7779a2d27c51808d9..1647b750169c79363b8e9ea3ac9c667d0af6af69 100644 (file)
@@ -222,7 +222,7 @@ ssize_t vhost_chr_read_iter(struct vhost_dev *dev, struct iov_iter *to,
                            int noblock);
 ssize_t vhost_chr_write_iter(struct vhost_dev *dev,
                             struct iov_iter *from);
-int vhost_init_device_iotlb(struct vhost_dev *d, bool enabled);
+int vhost_init_device_iotlb(struct vhost_dev *d);
 
 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
                          struct vhost_iotlb_map *map);
index a2b3743723639cbbe8088c7c9ab420cdfb46a363..1ffa36eb3efbd6c095fd4eedaa51b42b0f1cf1a0 100644 (file)
@@ -829,7 +829,7 @@ static int vhost_vsock_set_features(struct vhost_vsock *vsock, u64 features)
        }
 
        if ((features & (1ULL << VIRTIO_F_ACCESS_PLATFORM))) {
-               if (vhost_init_device_iotlb(&vsock->dev, true))
+               if (vhost_init_device_iotlb(&vsock->dev))
                        goto err;
        }