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

virtio: Fix delete_virtqueues function #527

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

arnopo
Copy link
Collaborator

@arnopo arnopo commented Oct 18, 2023

The function should return void. the reason is that vdev->func->delete_virtqueues() is optional and return void.

To be generic we should call virtio_delete_virtqueues in all cases. Then depending on the dispatcher we do nothing or call delete_virtqueues()

Fixes: 7f90610 ("virtio: add create_virtqueues and delete_virtqueues in virtio_dispatch")

The function should return void. the reason is that
vdev->func->delete_virtqueues() is optional and return void.

To be generic we should call virtio_delete_virtqueues in all cases.
Then depending on the dispatcher we do nothing or call delete_virtqueues()

Fixes: 7f90610 ("virtio: add create_virtqueues and delete_virtqueues in virtio_dispatch")

Signed-off-by: Arnaud Pouliquen <[email protected]>
@arnopo
Copy link
Collaborator Author

arnopo commented Oct 18, 2023

git lint report an false positive error :
UC4 Line exceeds max length (89>80): "Fixes: 7f90610 ("virtio: add create_virtqueues and delete_virtqueues in virtio_dispatch")"
To ignore as this line is standard to declare fix

@arnopo
Copy link
Collaborator Author

arnopo commented Oct 18, 2023

@CV-Bowen please could you have a look to this PR

@CV-Bowen
Copy link
Contributor

@arnopo LGTM

Copy link
Collaborator

@tnmysh tnmysh left a comment

Choose a reason for hiding this comment

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

LGTM

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 go.

@edmooring edmooring merged commit de33a8d into OpenAMP:main Oct 19, 2023
2 of 3 checks passed
@arnopo arnopo deleted the fix_delete_vq branch January 3, 2024 10:29
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.

5 participants