[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [libvirt bisection] complete build-amd64-libvirt



Ian Campbell wrote:
> From 2702cbbffd40384571b39bb6da21d76fc7b8ccd6 Mon Sep 17 00:00:00 2001
> From: Ian Campbell <ian.campbell@xxxxxxxxxx>
> Date: Fri, 11 Jul 2014 14:38:30 +0100
> Subject: [PATCH] libxl: Correct cast to virDomainDiskDiscard enum.
>
> This was converted to a typedef in 5a2bd4c9171d "conf: more enum
> cleanups in "src/conf/domain_conf.h"" causing:
>     libxl/libxl_conf.c: In function 'libxlDiskSetDiscard':
>     libxl/libxl_conf.c:724:19: error: conversion to incomplete type
>
> Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
> ---
>  src/libxl/libxl_conf.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
> index 0b4a0b5..f620d47 100644
> --- a/src/libxl/libxl_conf.c
> +++ b/src/libxl/libxl_conf.c
> @@ -721,7 +721,7 @@ libxlDiskSetDiscard(libxl_device_disk *x_disk, int 
> discard)
>      if (!x_disk->readwrite)
>          return 0;
>  #if defined(LIBXL_HAVE_LIBXL_DEVICE_DISK_DISCARD_ENABLE)
> -    switch ((enum virDomainDiskDiscard)discard) {
> +    switch ((virDomainDiskDiscard)discard) {
>      case VIR_DOMAIN_DISK_DISCARD_DEFAULT:
>      case VIR_DOMAIN_DISK_DISCARD_LAST:
>          break;
>   

Thanks for the fix.  I've pushed the patch.

Regards,
Jim


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.