eal: emit warning for unused trylock return value
[dpdk.git] / lib / eal / include / rte_dev.h
index 6dd72c1..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>
@@ -56,12 +55,6 @@ enum rte_dev_policy {
        RTE_DEV_BLOCKED,
 };
 
-/* Backwards compatibility will be removed */
-#define RTE_DEV_WHITELISTED \
-       RTE_DEPRECATED(RTE_DEV_WHITELISTED) RTE_DEV_ALLOWED
-#define RTE_DEV_BLACKLISTED \
-       RTE_DEPRECATED(RTE_DEV_BLACKLISTED) RTE_DEV_BLOCKED
-
 /**
  * A generic memory resource representation.
  */
@@ -75,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. */
 };
@@ -90,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 */