On 2/7/26 08:19, Pierrick Bouvier wrote:
From: Philippe Mathieu-Daudé <[email protected]>

VirtIODevice argument is accessed read-only, make it const.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Pierrick Bouvier <[email protected]>
---
  include/hw/virtio/virtio.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Richard Henderson <[email protected]>

r~


diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index 27cd98d2fe1..65872f2c54c 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -468,7 +468,7 @@ static inline bool virtio_host_has_feature(VirtIODevice 
*vdev,
      return virtio_has_feature(vdev->host_features, fbit);
  }
-static inline bool virtio_is_big_endian(VirtIODevice *vdev)
+static inline bool virtio_is_big_endian(const VirtIODevice *vdev)
  {
      if (!virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) {
          assert(vdev->device_endian != VIRTIO_DEVICE_ENDIAN_UNKNOWN);


Reply via email to