mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
19c2d53c02
commit
d76795ea3d
4 changed files with 5 additions and 5 deletions
|
@ -1083,7 +1083,7 @@ static void usbback_event(struct XenLegacyDevice *xendev)
|
|||
qemu_bh_schedule(usbif->bh);
|
||||
}
|
||||
|
||||
static struct XenDevOps xen_usb_ops = {
|
||||
static const struct XenDevOps xen_usb_ops = {
|
||||
.size = sizeof(struct usbback_info),
|
||||
.flags = DEVOPS_FLAG_NEED_GNTDEV,
|
||||
.init = usbback_init,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue