mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
virtio_9p.c: fix compile error in OpenAMP upgrade feature reflow to dev
v9fs/virtio_9p.c:223:3: error: too few arguments to function 'virtio_negotiate_features' 223 | virtio_negotiate_features(vdev, 1 << VIRTIO_9P_MOUNT_TAG); v9fs/virtio_9p.c:245:9: error: too few arguments to function 'virtio_create_virtqueues' 245 | ret = virtio_create_virtqueues(vdev, 0, 1, vqname, callback); Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
1b24139020
commit
60ab9ae37e
+2
-2
@@ -221,7 +221,7 @@ static int virtio_9p_probe(FAR struct virtio_device *vdev)
|
||||
int ret;
|
||||
|
||||
virtio_set_status(vdev, VIRTIO_CONFIG_STATUS_DRIVER);
|
||||
virtio_negotiate_features(vdev, 1 << VIRTIO_9P_MOUNT_TAG);
|
||||
virtio_negotiate_features(vdev, 1 << VIRTIO_9P_MOUNT_TAG, NULL);
|
||||
virtio_set_status(vdev, VIRTIO_CONFIG_FEATURES_OK);
|
||||
|
||||
if (!virtio_has_feature(vdev, VIRTIO_9P_MOUNT_TAG))
|
||||
@@ -243,7 +243,7 @@ static int virtio_9p_probe(FAR struct virtio_device *vdev)
|
||||
|
||||
vqname[0] = "virtio_9p_vq";
|
||||
callback[0] = virtio_9p_done;
|
||||
ret = virtio_create_virtqueues(vdev, 0, 1, vqname, callback);
|
||||
ret = virtio_create_virtqueues(vdev, 0, 1, vqname, callback, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
vrterr("virtio_device_create_virtqueue failed, ret=%d\n", ret);
|
||||
|
||||
Reference in New Issue
Block a user