eal/linux: fix illegal memory access in uevent handler
[dpdk.git] / lib / eal / include / rte_devargs.h
index 665f4aa..37a0f04 100644 (file)
@@ -21,7 +21,6 @@ extern "C" {
 #endif
 
 #include <stdio.h>
-#include <sys/queue.h>
 #include <rte_compat.h>
 #include <rte_bus.h>
 
@@ -36,7 +35,7 @@ extern "C" {
 /**
  * Class type key in global devargs syntax.
  *
- * Legacy devargs parser doesn't parse class type. PMD driver is
+ * Legacy devargs parser doesn't parse class type. PMD is
  * encouraged to use this key to resolve class type.
  */
 #define RTE_DEVARGS_KEY_CLASS "class"
@@ -44,7 +43,7 @@ extern "C" {
 /**
  * Driver type key in global devargs syntax.
  *
- * Legacy devargs parser doesn't parse driver type. PMD driver is
+ * Legacy devargs parser doesn't parse driver type. PMD is
  * encouraged to use this key to resolve driver type.
  */
 #define RTE_DEVARGS_KEY_DRIVER "driver"
@@ -70,7 +69,7 @@ enum rte_devtype {
  */
 struct rte_devargs {
        /** Next in list. */
-       TAILQ_ENTRY(rte_devargs) next;
+       RTE_TAILQ_ENTRY(rte_devargs) next;
        /** Type of device. */
        enum rte_devtype type;
        /** Device policy. */