This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 60ab9ae37e5e05bff2548608eb4a16e2bd2c9b30 Author: Yongrong Wang <[email protected]> AuthorDate: Sat Sep 14 21:45:57 2024 +0800 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 <[email protected]> --- fs/v9fs/virtio_9p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/v9fs/virtio_9p.c b/fs/v9fs/virtio_9p.c index 673f0f84a7..652361add5 100644 --- a/fs/v9fs/virtio_9p.c +++ b/fs/v9fs/virtio_9p.c @@ -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);
