aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/vhost/net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index 969a85960e9f..280ee66ae552 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -276,8 +276,8 @@ static void copy_iovec_hdr(const struct iovec *from, struct iovec *to,
276 * of used idx. Once lower device DMA done contiguously, we will signal KVM 276 * of used idx. Once lower device DMA done contiguously, we will signal KVM
277 * guest used idx. 277 * guest used idx.
278 */ 278 */
279static int vhost_zerocopy_signal_used(struct vhost_net *net, 279static void vhost_zerocopy_signal_used(struct vhost_net *net,
280 struct vhost_virtqueue *vq) 280 struct vhost_virtqueue *vq)
281{ 281{
282 struct vhost_net_virtqueue *nvq = 282 struct vhost_net_virtqueue *nvq =
283 container_of(vq, struct vhost_net_virtqueue, vq); 283 container_of(vq, struct vhost_net_virtqueue, vq);
@@ -297,7 +297,6 @@ static int vhost_zerocopy_signal_used(struct vhost_net *net,
297 } 297 }
298 if (j) 298 if (j)
299 nvq->done_idx = i; 299 nvq->done_idx = i;
300 return j;
301} 300}
302 301
303static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success) 302static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success)