[PATCH] virtio_rng: adopt driver to newest virtio code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rusty,

This patch changes the virtio_rng to a callback without a return value.

Signed-off-by: Christian Borntraeger <borntraeger@xxxxxxxxxx>

---
 drivers/char/hw_random/virtio-rng.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Index: kvm/drivers/char/hw_random/virtio-rng.c
===================================================================
--- kvm.orig/drivers/char/hw_random/virtio-rng.c
+++ kvm/drivers/char/hw_random/virtio-rng.c
@@ -27,13 +27,12 @@ static struct virtqueue *vq;
 static u32 random_data;
 static bool have_data;
 
-static bool random_recv_done(struct virtqueue *vq)
+static void random_recv_done(struct virtqueue *vq)
 {
 	have_data = true;
 
-	/* Don't suppress callbacks: there can't be any more since we
+	/* No need to call disable_cb: there can't be any more since we
 	 * have used up the only buffer. */
-	return true;
 }
 
 static void register_buffer(void)


_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/virtualization

[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux