From: Thomas Monjalon Date: Thu, 4 May 2017 15:44:38 +0000 (+0200) Subject: eal: remove forward declaration of generic driver X-Git-Tag: spdx-start~3289 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b2036f771820e39defe37257eb291a4ab516da06;p=dpdk.git eal: remove forward declaration of generic driver We can just move rte_driver definition before rte_device (which depends on rte_driver). Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index b63d0540d5..759059889d 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -123,8 +123,14 @@ struct rte_mem_resource { void *addr; /**< Virtual address, NULL when not mapped. */ }; -/* Forward declaration */ -struct rte_driver; +/** + * A structure describing a device driver. + */ +struct rte_driver { + TAILQ_ENTRY(rte_driver) next; /**< Next in list. */ + const char *name; /**< Driver name. */ + const char *alias; /**< Driver alias. */ +}; /** * A structure describing a generic device. @@ -137,15 +143,6 @@ struct rte_device { struct rte_devargs *devargs; /**< Device user arguments */ }; -/** - * A structure describing a device driver. - */ -struct rte_driver { - TAILQ_ENTRY(rte_driver) next; /**< Next in list. */ - const char *name; /**< Driver name. */ - const char *alias; /**< Driver alias. */ -}; - /** * Initialize a driver specified by name. *