Skip to content

Commit

Permalink
drivers/vhost-rng: fix compile error in vhost-rng.
Browse files Browse the repository at this point in the history
vhost/vhost-rng.c:154:9: error: too few arguments to function 'virtio_create_virtqueues'
  154 |   ret = vhost_create_virtqueues(hdev, 0, 1, vqnames, callback);

Signed-off-by: rongyichang <[email protected]>
  • Loading branch information
terry0012 committed Jan 11, 2025
1 parent f80a9be commit 5cb94e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/vhost/vhost-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <stdlib.h>

#include <nuttx/kmalloc.h>
#include <nuttx/spinlock.h>
#include <nuttx/vhost/vhost.h>
#include <nuttx/wqueue.h>

Expand Down Expand Up @@ -151,7 +152,7 @@ static int vhost_rng_probe(FAR struct vhost_device *hdev)

vqnames[0] = "virtio_rng";
callback[0] = vhost_rng_handler;
ret = vhost_create_virtqueues(hdev, 0, 1, vqnames, callback);
ret = vhost_create_virtqueues(hdev, 0, 1, vqnames, callback, NULL);
if (ret < 0)
{
vhosterr("virtio_device_create_virtqueue failed, ret=%d\n", ret);
Expand Down

0 comments on commit 5cb94e2

Please sign in to comment.