aboutsummaryrefslogtreecommitdiff
path: root/hw/display
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-10 11:36:51 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-04 11:53:43 +0200
commitd76795ea3dd412e7f4e293672170e3292ef0f7a5 (patch)
treea39f91b820535e4fea9d31bc9629f27c2c40c588 /hw/display
parent19c2d53c029e57bb096377837fe250e367afece4 (diff)
downloadqemu-d76795ea3dd412e7f4e293672170e3292ef0f7a5.zip
qemu-d76795ea3dd412e7f4e293672170e3292ef0f7a5.tar.gz
qemu-d76795ea3dd412e7f4e293672170e3292ef0f7a5.tar.bz2
hw/xen: Make XenDevOps structures const
Keep XenDevOps structures in .rodata. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Paul Durrant <paul@xen.org> Message-Id: <20240510104908.76908-5-philmd@linaro.org>
Diffstat (limited to 'hw/display')
-rw-r--r--hw/display/xenfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c
index 27536bf..b6d370b 100644
--- a/hw/display/xenfb.c
+++ b/hw/display/xenfb.c
@@ -972,7 +972,7 @@ static void fb_event(struct XenLegacyDevice *xendev)
/* -------------------------------------------------------------------- */
-static struct XenDevOps xen_kbdmouse_ops = {
+static const struct XenDevOps xen_kbdmouse_ops = {
.size = sizeof(struct XenInput),
.init = input_init,
.initialise = input_initialise,
@@ -981,7 +981,7 @@ static struct XenDevOps xen_kbdmouse_ops = {
.event = input_event,
};
-struct XenDevOps xen_framebuffer_ops = {
+const struct XenDevOps xen_framebuffer_ops = {
.size = sizeof(struct XenFB),
.init = fb_init,
.initialise = fb_initialise,