From 39780fdae1e5291c4466d5d45bf4288e8e5690ca Mon Sep 17 00:00:00 2001 From: rongyichang Date: Sat, 11 Jan 2025 18:38:07 +0800 Subject: [PATCH] drivers/vhost-rng: fix compile error in vhost-rng. 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 --- drivers/vhost/vhost-rng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/vhost/vhost-rng.c b/drivers/vhost/vhost-rng.c index a9cdec309b..5730ee50c9 100644 --- a/drivers/vhost/vhost-rng.c +++ b/drivers/vhost/vhost-rng.c @@ -30,6 +30,7 @@ #include #include +#include #include #include @@ -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);