From ed14c1d3a612739e638d097ede80c956ed93d7d6 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Tue, 8 Oct 2024 13:44:35 +0800 Subject: [PATCH] rpmsg/virtio: fix compile issue, feature uint32_t to uint64_t Has change the virtio feature bit to 64bit, so rpmsg virtio need change to 64bit too. Signed-off-by: buxiasen --- drivers/rpmsg/rpmsg_virtio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/rpmsg/rpmsg_virtio.c b/drivers/rpmsg/rpmsg_virtio.c index be3c7feb6e..5d3a10cecb 100644 --- a/drivers/rpmsg/rpmsg_virtio.c +++ b/drivers/rpmsg/rpmsg_virtio.c @@ -81,9 +81,9 @@ static int rpmsg_virtio_create_virtqueues_(FAR struct virtio_device *vdev, static uint8_t rpmsg_virtio_get_status_(FAR struct virtio_device *dev); static void rpmsg_virtio_set_status_(FAR struct virtio_device *dev, uint8_t status); -static uint32_t rpmsg_virtio_get_features_(FAR struct virtio_device *dev); +static uint64_t rpmsg_virtio_get_features_(FAR struct virtio_device *dev); static void rpmsg_virtio_set_features(FAR struct virtio_device *dev, - uint32_t feature); + uint64_t feature); static void rpmsg_virtio_notify(FAR struct virtqueue *vq); /**************************************************************************** @@ -181,7 +181,7 @@ static void rpmsg_virtio_set_status_(FAR struct virtio_device *vdev, priv->rsc->rpmsg_vdev.status = status; } -static uint32_t rpmsg_virtio_get_features_(FAR struct virtio_device *vdev) +static uint64_t rpmsg_virtio_get_features_(FAR struct virtio_device *vdev) { FAR struct rpmsg_virtio_priv_s *priv = rpmsg_virtio_get_priv(vdev); @@ -189,7 +189,7 @@ static uint32_t rpmsg_virtio_get_features_(FAR struct virtio_device *vdev) } static void rpmsg_virtio_set_features(FAR struct virtio_device *vdev, - uint32_t features) + uint64_t features) { FAR struct rpmsg_virtio_priv_s *priv = rpmsg_virtio_get_priv(vdev);