[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] libxl: update prototype of libxl__device_vkb_dm_needed
commit a2ad3e771b459c80cbfec23723290a611a4cd76c Author: Olaf Hering <olaf@xxxxxxxxx> AuthorDate: Wed Apr 10 12:26:34 2019 +0200 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Mon May 13 11:28:27 2019 +0100 libxl: update prototype of libxl__device_vkb_dm_needed Align code to match other usage of device_dm_needed_fn_t: recieve a void pointer, assign to expected type and use it accordingly. No functional change expected. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/libxl_vkb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_vkb.c b/tools/libxl/libxl_vkb.c index e928839cfb..64e20b772a 100644 --- a/tools/libxl/libxl_vkb.c +++ b/tools/libxl/libxl_vkb.c @@ -26,9 +26,11 @@ static int libxl__device_vkb_setdefault(libxl__gc *gc, uint32_t domid, return libxl__resolve_domid(gc, vkb->backend_domname, &vkb->backend_domid); } -static int libxl__device_vkb_dm_needed(libxl_device_vkb *vkb, uint32_t domid) +static int libxl__device_vkb_dm_needed(void *e, uint32_t domid) { - return vkb->backend_type == LIBXL_VKB_BACKEND_QEMU; + libxl_device_vkb *elem = e; + + return elem->backend_type == LIBXL_VKB_BACKEND_QEMU; } static int libxl__set_xenstore_vkb(libxl__gc *gc, uint32_t domid, @@ -327,7 +329,7 @@ LIBXL_DEFINE_DEVICE_REMOVE(vkb) DEFINE_DEVICE_TYPE_STRUCT(vkb, VKBD, .skip_attach = 1, - .dm_needed = (device_dm_needed_fn_t)libxl__device_vkb_dm_needed, + .dm_needed = libxl__device_vkb_dm_needed, .set_xenstore_config = (device_set_xenstore_config_fn_t) libxl__set_xenstore_vkb, .from_xenstore = (device_from_xenstore_fn_t)libxl__vkb_from_xenstore -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |