[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen stable-4.13] libxl/Arm: correct xc_shadow_control() invocation to fix build
commit 0be63c2615b268001f7cc9b72ce25eed952737dc Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Wed Oct 12 17:36:48 2022 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Oct 12 17:36:48 2022 +0200 libxl/Arm: correct xc_shadow_control() invocation to fix build The backport didn't adapt to the earlier function prototype taking more (unused here) arguments. Fixes: c5215044578e ("xen/arm, libxl: Implement XEN_DOMCTL_shadow_op for Arm") Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx> Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> --- tools/libxl/libxl_arm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index 025df1bfd0..79cfb9cd29 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -131,14 +131,14 @@ int libxl__arch_domain_create(libxl__gc *gc, libxl_domain_config *d_config, uint32_t domid) { libxl_ctx *ctx = libxl__gc_owner(gc); - unsigned int shadow_mb = DIV_ROUNDUP(d_config->b_info.shadow_memkb, 1024); + unsigned long shadow_mb = DIV_ROUNDUP(d_config->b_info.shadow_memkb, 1024); int r = xc_shadow_control(ctx->xch, domid, XEN_DOMCTL_SHADOW_OP_SET_ALLOCATION, - &shadow_mb, 0); + NULL, 0, &shadow_mb, 0, NULL); if (r) { LOGED(ERROR, domid, - "Failed to set %u MiB shadow allocation", shadow_mb); + "Failed to set %lu MiB shadow allocation", shadow_mb); return ERROR_FAIL; } -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.13
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |