This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 6485093277 rpproxy_virtio/rpserver_virtio: fix the compile error
6485093277 is described below

commit 6485093277ccd81e95659309424f9528cf23c63b
Author: Bowen Wang <wangbow...@xiaomi.com>
AuthorDate: Tue Dec 31 15:30:33 2024 +0800

    rpproxy_virtio/rpserver_virtio: fix the compile error
    
    1. Change the CONFIG_RPMSG_VIRTIO to CONFIG_RPMSG_VIRTIO_LITE
    2. fix the error when modify the sim_rpmsg_virtio to port to
    rpsmg_virtio_lite;
    
    Signed-off-by: Bowen Wang <wangbow...@xiaomi.com>
---
 arch/sim/src/sim/sim_rpmsg_virtio.c                  | 2 +-
 boards/sim/sim/sim/configs/rpproxy_virtio/defconfig  | 2 +-
 boards/sim/sim/sim/configs/rpserver_virtio/defconfig | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/sim/src/sim/sim_rpmsg_virtio.c 
b/arch/sim/src/sim/sim_rpmsg_virtio.c
index 918a8716a6..6e459c1263 100644
--- a/arch/sim/src/sim/sim_rpmsg_virtio.c
+++ b/arch/sim/src/sim/sim_rpmsg_virtio.c
@@ -100,7 +100,7 @@ sim_rpmsg_virtio_get_resource(struct rpmsg_virtio_lite_s 
*dev)
     }
 
   rsc = &priv->shmem->rsc;
-  cmd = RPMSG_VIRTIO_RSC2CMD(rsc);
+  cmd = RPMSG_VIRTIO_LITE_RSC2CMD(rsc);
 
   if (priv->master)
     {
diff --git a/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig 
b/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig
index 4530dc4c26..8c70c79a7e 100644
--- a/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig
+++ b/boards/sim/sim/sim/configs/rpproxy_virtio/defconfig
@@ -55,7 +55,7 @@ CONFIG_READLINE_TABCOMPLETION=y
 CONFIG_RPMSGMTD=y
 CONFIG_RPMSG_PING=y
 CONFIG_RPMSG_UART=y
-CONFIG_RPMSG_VIRTIO=y
+CONFIG_RPMSG_VIRTIO_LITE=y
 CONFIG_RTC=y
 CONFIG_RTC_ARCH=y
 CONFIG_RTC_DRIVER=y
diff --git a/boards/sim/sim/sim/configs/rpserver_virtio/defconfig 
b/boards/sim/sim/sim/configs/rpserver_virtio/defconfig
index 3a2686b63d..b92d454688 100644
--- a/boards/sim/sim/sim/configs/rpserver_virtio/defconfig
+++ b/boards/sim/sim/sim/configs/rpserver_virtio/defconfig
@@ -73,7 +73,7 @@ CONFIG_REGULATOR_RPMSG=y
 CONFIG_RPMSGMTD_SERVER=y
 CONFIG_RPMSG_PING=y
 CONFIG_RPMSG_UART=y
-CONFIG_RPMSG_VIRTIO=y
+CONFIG_RPMSG_VIRTIO_LITE=y
 CONFIG_RTC=y
 CONFIG_RTC_ARCH=y
 CONFIG_RTC_DRIVER=y

Reply via email to