Re: [PATCH v3 1/6] include/hw/virtio: make some VirtIODevice const

2023-06-01 Thread Eugenio Perez Martin
On Thu, Jun 1, 2023 at 3:49 PM Hawkins Jiawei wrote: > > The VirtIODevice structure is not modified in > virtio_vdev_has_feature(). Therefore, make it const > to allow this function to accept const variables. > > Signed-off-by: Hawkins Jiawei Reviewed-by: Eugenio Pérez Martin > --- > include/

[PATCH v3 1/6] include/hw/virtio: make some VirtIODevice const

2023-06-01 Thread Hawkins Jiawei
The VirtIODevice structure is not modified in virtio_vdev_has_feature(). Therefore, make it const to allow this function to accept const variables. Signed-off-by: Hawkins Jiawei --- include/hw/virtio/virtio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/virtio/v