summary refs log tree commit diff stats
path: root/hw/xen/xen-legacy-backend.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-10 10:22:42 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-04 11:53:43 +0200
commit61d993d4babf3b8bce3b01f69be10f470a006d08 (patch)
tree1ba0f18e3e5dd1d6926cf898bb9e19b53ff416db /hw/xen/xen-legacy-backend.c
parenta5bdc451c7d10056acd9b49f6028895451b37df5 (diff)
downloadfocaccia-qemu-61d993d4babf3b8bce3b01f69be10f470a006d08.tar.gz
focaccia-qemu-61d993d4babf3b8bce3b01f69be10f470a006d08.zip
hw/xen: Constify XenLegacyDevice::XenDevOps
XenDevOps @ops is not updated, mark it const.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Paul Durrant <paul@xen.org>
Message-Id: <20240510104908.76908-3-philmd@linaro.org>
Diffstat (limited to 'hw/xen/xen-legacy-backend.c')
-rw-r--r--hw/xen/xen-legacy-backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c
index 6f0b300a42..33620fe42e 100644
--- a/hw/xen/xen-legacy-backend.c
+++ b/hw/xen/xen-legacy-backend.c
@@ -170,7 +170,7 @@ int xen_be_copy_grant_refs(struct XenLegacyDevice *xendev,
  */
 static struct XenLegacyDevice *xen_be_get_xendev(const char *type, int dom,
                                                  int dev,
-                                                 struct XenDevOps *ops)
+                                                 const struct XenDevOps *ops)
 {
     struct XenLegacyDevice *xendev;