From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH] eal: remove forward declaration of generic driver Date: Thu, 4 May 2017 17:46:20 +0200 Message-ID: <20170504154620.29243-1-thomas@monjalon.net> To: dev@dpdk.org Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 7871A7CD8 for ; Thu, 4 May 2017 17:46:44 +0200 (CEST) Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 90F287E2E2 for ; Thu, 4 May 2017 11:46:43 -0400 (EDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 b63d0540d..759059889 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. @@ -138,15 +144,6 @@ struct rte_device { }; /** - * 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. * * @param name -- 2.12.2