diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-12-19 12:13:52 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-01-05 23:48:59 +0100 |
commit | 898e853635a79e33917bb4646ff1fb5fc3a92997 (patch) | |
tree | 7e1fdf7257b5d218549d7f864a5553641b29bde4 /vu_common.c | |
parent | 324233bd9b8baa3ec13a7425ea3ec7145e3ce645 (diff) | |
download | passt-898e853635a79e33917bb4646ff1fb5fc3a92997.tar passt-898e853635a79e33917bb4646ff1fb5fc3a92997.tar.gz passt-898e853635a79e33917bb4646ff1fb5fc3a92997.tar.bz2 passt-898e853635a79e33917bb4646ff1fb5fc3a92997.tar.lz passt-898e853635a79e33917bb4646ff1fb5fc3a92997.tar.xz passt-898e853635a79e33917bb4646ff1fb5fc3a92997.tar.zst passt-898e853635a79e33917bb4646ff1fb5fc3a92997.zip |
virtio: Use const pointer for vu_dev
We don't modify the structure in some virtio functions.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'vu_common.c')
-rw-r--r-- | vu_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vu_common.c b/vu_common.c index 299b5a3..6d365be 100644 --- a/vu_common.c +++ b/vu_common.c @@ -73,7 +73,7 @@ void vu_init_elem(struct vu_virtq_element *elem, struct iovec *iov, int elem_cnt * * Return: number of elements used to contain the frame */ -int vu_collect(struct vu_dev *vdev, struct vu_virtq *vq, +int vu_collect(const struct vu_dev *vdev, struct vu_virtq *vq, struct vu_virtq_element *elem, int max_elem, size_t size, size_t *frame_size) { |