eal: emit warning for unused trylock return value
[dpdk.git] / lib / eal / include / rte_dev.h
index aec7030..448a41c 100644 (file)
@@ -8,7 +8,7 @@
 /**
  * @file
  *
- * RTE PMD Driver Registration Interface
+ * RTE PMD Registration Interface
  *
  * This file manages the list of device drivers.
  */
@@ -18,7 +18,6 @@ extern "C" {
 #endif
 
 #include <stdio.h>
-#include <sys/queue.h>
 
 #include <rte_config.h>
 #include <rte_compat.h>
@@ -69,7 +68,7 @@ struct rte_mem_resource {
  * A structure describing a device driver.
  */
 struct rte_driver {
-       TAILQ_ENTRY(rte_driver) next;  /**< Next in list. */
+       RTE_TAILQ_ENTRY(rte_driver) next; /**< Next in list. */
        const char *name;                   /**< Driver name. */
        const char *alias;              /**< Driver alias. */
 };
@@ -84,7 +83,7 @@ struct rte_driver {
  * A structure describing a generic device.
  */
 struct rte_device {
-       TAILQ_ENTRY(rte_device) next; /**< Next device */
+       RTE_TAILQ_ENTRY(rte_device) next; /**< Next device */
        const char *name;             /**< Device name */
        const struct rte_driver *driver; /**< Driver assigned after probing */
        const struct rte_bus *bus;    /**< Bus handle assigned on scan */