From b2036f771820e39defe37257eb291a4ab516da06 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Thu, 4 May 2017 17:44:38 +0200 Subject: [PATCH] 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 --- lib/librte_eal/common/include/rte_dev.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) 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. * -- 2.20.1