mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
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>
This commit is contained in:
parent
a5bdc451c7
commit
61d993d4ba
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ struct XenLegacyDevice {
|
|||
xenevtchn_handle *evtchndev;
|
||||
xengnttab_handle *gnttabdev;
|
||||
|
||||
struct XenDevOps *ops;
|
||||
const struct XenDevOps *ops;
|
||||
QTAILQ_ENTRY(XenLegacyDevice) next;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue