Commit 1c4010fa authored by Ian Jackson's avatar Ian Jackson Committed by Ian Jackson
Browse files

xen: Remove now-obsolete xen_xc_domain_add_to_physmap



The last user was just removed; remove this function, accordingly.

Signed-off-by: default avatarIan Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
parent 2cbf8903
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
@@ -645,28 +645,6 @@ static inline int xen_set_ioreq_server_state(domid_t dom,

#endif

#if CONFIG_XEN_CTRL_INTERFACE_VERSION < 40600
static inline int xen_xc_domain_add_to_physmap(xc_interface *xch, uint32_t domid,
                                               unsigned int space,
                                               unsigned long idx,
                                               xen_pfn_t gpfn)
{
    return xc_domain_add_to_physmap(xch, domid, space, idx, gpfn);
}
#else
static inline int xen_xc_domain_add_to_physmap(xc_interface *xch, uint32_t domid,
                                               unsigned int space,
                                               unsigned long idx,
                                               xen_pfn_t gpfn)
{
    /* In Xen 4.6 rc is -1 and errno contains the error value. */
    int rc = xc_domain_add_to_physmap(xch, domid, space, idx, gpfn);
    if (rc == -1)
        return errno;
    return rc;
}
#endif

#ifdef CONFIG_XEN_PV_DOMAIN_BUILD
#if CONFIG_XEN_CTRL_INTERFACE_VERSION < 40700
static inline int xen_domain_create(xc_interface *xc, uint32_t ssidref,