Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: cd7f331045889650189d1357fc079987236c4c0c https://github.com/OpenAMP/open-amp/commit/cd7f331045889650189d1357fc0799872... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2022-10-20 (Thu, 20 Oct 2022)
Changed paths: M lib/remoteproc/remoteproc_virtio.c
Log Message: ----------- remoteproc: Fix build warning in rproc_virtio_create_vdev function
The arm-none-eabi-gcc complains when VIRTIO_DEVICE_ONLY is enable
remoteproc_virtio.c:222:29: warning: variable 'vring_rsc' set but not used [-Wunused-but-set-variable] 222 | struct fw_rsc_vdev_vring *vring_rsc; | ^~~~~~~~~
The vring_rsc variable should be declared and set only if VIRTIO_DEVICE_ONLY is not enable.
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
openamp-rp@lists.openampproject.org