eal: fix build with Xen dom0 enabled
[dpdk.git] / lib / librte_eal / common / include / rte_memory.h
index 33f5a77..9c9e40f 100644 (file)
@@ -184,7 +184,7 @@ unsigned rte_memory_get_nrank(void);
 #ifdef RTE_LIBRTE_XEN_DOM0
 
 /**< Internal use only - should DOM0 memory mapping be used */
-extern int is_xen_dom0_supported(void);
+extern int rte_xen_dom0_supported(void);
 
 /**< Internal use only - phys to virt mapping for xen */
 phys_addr_t rte_xen_mem_phy2mch(uint32_t, const phys_addr_t);
@@ -203,7 +203,7 @@ phys_addr_t rte_xen_mem_phy2mch(uint32_t, const phys_addr_t);
 static inline phys_addr_t
 rte_mem_phy2mch(uint32_t memseg_id, const phys_addr_t phy_addr)
 {
-       if (is_xen_dom0_supported())
+       if (rte_xen_dom0_supported())
                return rte_xen_mem_phy2mch(memseg_id, phy_addr);
        else
                return phy_addr;
@@ -231,7 +231,7 @@ int rte_xen_dom0_memory_init(void);
  */
 int rte_xen_dom0_memory_attach(void);
 #else
-static inline int is_xen_dom0_supported(void)
+static inline int rte_xen_dom0_supported(void)
 {
        return 0;
 }