On Tue, Sep 15, 2015 at 06:53:53PM +0100, M A Young wrote:
> On Tue, 15 Sep 2015, Stefano Stabellini wrote:
> 
> >              } else {
> > +                if (!disks[i].readwrite) {
> > +                    LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "qemu-xen doesn't 
> > support read-only disk drivers");
> > +                    return ERROR_INVAL;
> > +                }
> > +
> 
> Is ERROR_INVAL the right error to return? I get
> 
> libxl_dm.c: In function 'libxl__build_device_model_args_new':
> libxl_dm.c:807:28: error: return makes pointer from integer without a cast 
> [-Werror=int-conversion]
>                      return ERROR_INVAL;
>                             ^
> cc1: all warnings being treated as errors
> 
> when I try to build xen with the proposed patch.  NULL is returned when 
> there is a problem in other places in this function.
> 

I don't follow.

The function in question is libxl__build_device_model_args_new, which
returns an integer. And there are other places in that function that
return ERROR_*.

Do I miss anything?

Wei.

>       Michael Young

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

Reply via email to