Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remoteproc: Fix build warning in rproc_virtio_create_vdev function #435

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

arnopo
Copy link
Collaborator

@arnopo arnopo commented Oct 19, 2022

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 [email protected]

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 <[email protected]>
@arnopo arnopo requested a review from edmooring October 19, 2022 14:34
@arnopo
Copy link
Collaborator Author

arnopo commented Oct 19, 2022

Fix warning introduced in #409

@arnopo
Copy link
Collaborator Author

arnopo commented Oct 19, 2022

@tammyleino: could you have a look please?

Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@tammyleino
Copy link
Collaborator

@arnopo Looks good to me - thank you!

@arnopo arnopo merged commit cd7f331 into OpenAMP:main Oct 20, 2022
@arnopo arnopo deleted the v2022.04-fixes branch October 20, 2022 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants