aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-10 10:25:08 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-04 11:53:43 +0200
commit19c2d53c029e57bb096377837fe250e367afece4 (patch)
tree836d5be9378531be2977b50fe38acd2a18fd5f53 /hw
parent61d993d4babf3b8bce3b01f69be10f470a006d08 (diff)
downloadqemu-19c2d53c029e57bb096377837fe250e367afece4.zip
qemu-19c2d53c029e57bb096377837fe250e367afece4.tar.gz
qemu-19c2d53c029e57bb096377837fe250e367afece4.tar.bz2
hw/xen: Constify xenstore_be::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-4-philmd@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/xen/xen-legacy-backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c
index 33620fe..5514184 100644
--- a/hw/xen/xen-legacy-backend.c
+++ b/hw/xen/xen-legacy-backend.c
@@ -520,7 +520,7 @@ void xen_be_check_state(struct XenLegacyDevice *xendev)
struct xenstore_be {
const char *type;
int dom;
- struct XenDevOps *ops;
+ const struct XenDevOps *ops;
};
static void xenstore_update_be(void *opaque, const char *watch)
@@ -557,7 +557,7 @@ static void xenstore_update_be(void *opaque, const char *watch)
}
}
-static int xenstore_scan(const char *type, int dom, struct XenDevOps *ops)
+static int xenstore_scan(const char *type, int dom, const struct XenDevOps *ops)
{
struct XenLegacyDevice *xendev;
char path[XEN_BUFSIZE];
@@ -624,7 +624,7 @@ void xen_be_init(void)
xen_set_dynamic_sysbus();
}
-int xen_be_register(const char *type, struct XenDevOps *ops)
+int xen_be_register(const char *type, const struct XenDevOps *ops)
{
char path[50];