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

Re: [Xen-devel] [PATCH for-4.6 v2 8/8] libxl: remove dead code libxl__domain_shutdown_reason



On Mon, 2015-07-27 at 18:45 +0100, Wei Liu wrote:
> There is no user in tree.

git log -S libxl__domain_shutdown_reason
git log -S get_shutdown_reason

(the later being a rename that the former picks up on) suggests it has
_never_ been used!

> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

> ---
>  tools/libxl/libxl_dom.c      | 17 -----------------
>  tools/libxl/libxl_internal.h |  1 -
>  2 files changed, 18 deletions(-)
> 
> diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
> index b3ae5b5..5555fea 100644
> --- a/tools/libxl/libxl_dom.c
> +++ b/tools/libxl/libxl_dom.c
> @@ -42,23 +42,6 @@ libxl_domain_type libxl__domain_type(libxl__gc *gc, 
> uint32_t domid)
>          return LIBXL_DOMAIN_TYPE_PV;
>  }
>  
> -int libxl__domain_shutdown_reason(libxl__gc *gc, uint32_t domid)
> -{
> -    libxl_ctx *ctx = libxl__gc_owner(gc);
> -    xc_domaininfo_t info;
> -    int ret;
> -
> -    ret = xc_domain_getinfolist(ctx->xch, domid, 1, &info);
> -    if (ret != 1)
> -        return -1;
> -    if (info.domain != domid)
> -        return -1;
> -    if (!(info.flags & XEN_DOMINF_shutdown))
> -        return -1;
> -
> -    return (info.flags >> XEN_DOMINF_shutdownshift) & 
> XEN_DOMINF_shutdownmask;
> -}
> -
>  int libxl__domain_cpupool(libxl__gc *gc, uint32_t domid)
>  {
>      xc_domaininfo_t info;
> diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
> index f2466dc..c7e4709 100644
> --- a/tools/libxl/libxl_internal.h
> +++ b/tools/libxl/libxl_internal.h
> @@ -1042,7 +1042,6 @@ _hidden int 
> libxl__file_reference_unmap(libxl__file_reference *f);
>  
>  /* from xl_dom */
>  _hidden libxl_domain_type libxl__domain_type(libxl__gc *gc, uint32_t 
> domid);
> -_hidden int libxl__domain_shutdown_reason(libxl__gc *gc, uint32_t 
> domid);
>  _hidden int libxl__domain_cpupool(libxl__gc *gc, uint32_t domid);
>  _hidden libxl_scheduler libxl__domain_scheduler(libxl__gc *gc, uint32_t 
> domid);
>  _hidden int libxl__sched_set_params(libxl__gc *gc, uint32_t domid,

_______________________________________________
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®.