diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-05-10 10:22:42 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-04 11:53:43 +0200 |
commit | 61d993d4babf3b8bce3b01f69be10f470a006d08 (patch) | |
tree | 1ba0f18e3e5dd1d6926cf898bb9e19b53ff416db | |
parent | a5bdc451c7d10056acd9b49f6028895451b37df5 (diff) | |
download | qemu-61d993d4babf3b8bce3b01f69be10f470a006d08.zip qemu-61d993d4babf3b8bce3b01f69be10f470a006d08.tar.gz qemu-61d993d4babf3b8bce3b01f69be10f470a006d08.tar.bz2 |
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>
-rw-r--r-- | hw/xen/xen-legacy-backend.c | 2 | ||||
-rw-r--r-- | include/hw/xen/xen_pvdev.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c index 6f0b300..33620fe 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; diff --git a/include/hw/xen/xen_pvdev.h b/include/hw/xen/xen_pvdev.h index fdf84f4..0c98444 100644 --- a/include/hw/xen/xen_pvdev.h +++ b/include/hw/xen/xen_pvdev.h @@ -52,7 +52,7 @@ struct XenLegacyDevice { xenevtchn_handle *evtchndev; xengnttab_handle *gnttabdev; - struct XenDevOps *ops; + const struct XenDevOps *ops; QTAILQ_ENTRY(XenLegacyDevice) next; }; |