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>
This commit is contained in:
parent
61d993d4ba
commit
19c2d53c02
@ -520,7 +520,7 @@ void xen_be_check_state(struct XenLegacyDevice *xendev)
|
|||||||
struct xenstore_be {
|
struct xenstore_be {
|
||||||
const char *type;
|
const char *type;
|
||||||
int dom;
|
int dom;
|
||||||
struct XenDevOps *ops;
|
const struct XenDevOps *ops;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void xenstore_update_be(void *opaque, const char *watch)
|
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;
|
struct XenLegacyDevice *xendev;
|
||||||
char path[XEN_BUFSIZE];
|
char path[XEN_BUFSIZE];
|
||||||
@ -624,7 +624,7 @@ void xen_be_init(void)
|
|||||||
xen_set_dynamic_sysbus();
|
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];
|
char path[50];
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ void xen_be_check_state(struct XenLegacyDevice *xendev);
|
|||||||
|
|
||||||
/* xen backend driver bits */
|
/* xen backend driver bits */
|
||||||
void xen_be_init(void);
|
void xen_be_init(void);
|
||||||
int xen_be_register(const char *type, struct XenDevOps *ops);
|
int xen_be_register(const char *type, const struct XenDevOps *ops);
|
||||||
int xen_be_set_state(struct XenLegacyDevice *xendev, enum xenbus_state state);
|
int xen_be_set_state(struct XenLegacyDevice *xendev, enum xenbus_state state);
|
||||||
int xen_be_bind_evtchn(struct XenLegacyDevice *xendev);
|
int xen_be_bind_evtchn(struct XenLegacyDevice *xendev);
|
||||||
void xen_be_set_max_grant_refs(struct XenLegacyDevice *xendev,
|
void xen_be_set_max_grant_refs(struct XenLegacyDevice *xendev,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user