Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: 3122cec8aab75c315d10dc4fb093e985680fa134 https://github.com/OpenAMP/open-amp/commit/3122cec8aab75c315d10dc4fb093e9856... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2025-01-13 (Mon, 13 Jan 2025)
Changed paths: M lib/include/openamp/virtio.h
Log Message: ----------- lib: virtio: Fix VIRTIO ROLE_XXXX macro definitions
Add parentheses around the "vdev" parameter to avoid side effects.
This fixes a build error when using the macro in the following way: if (VIRTIO_ROLE_IS_DEVICE(&my_context->vdev))
The error encountered: openamp/open-amp/lib/include/openamp/virtio.h:89:49: error: invalid type argument of ‘->’ (have ‘struct virtio_device’) 89 | (VIRTIO_ENABLED(VIRTIO_DRIVER_SUPPORT) && (vdev->role) == VIRTIO_DEV_DRIVER)
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications
openamp-rp@lists.openampproject.org