From 898e853635a79e33917bb4646ff1fb5fc3a92997 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 19 Dec 2024 12:13:52 +0100 Subject: virtio: Use const pointer for vu_dev We don't modify the structure in some virtio functions. Signed-off-by: Laurent Vivier Reviewed-by: David Gibson Signed-off-by: Stefano Brivio --- vu_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vu_common.c') 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) { -- cgit v1.2.3