From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fm2nodo5.polito.it (fm2nodo5.polito.it [130.192.180.14]) by dpdk.org (Postfix) with ESMTP id 4F9D911DE for ; Sun, 14 Aug 2016 18:22:16 +0200 (CEST) Received: from polito.it (frontmail1.polito.it [130.192.180.41]) by fm2nodo5.polito.it with ESMTP id u7EGMFY2007507-u7EGMFY4007507 (version=TLSv1.0 cipher=DHE-RSA-AES256-SHA bits=256 verify=CAFAIL); Sun, 14 Aug 2016 18:22:15 +0200 Received: from [93.56.119.196] (account d040768@polito.it HELO localhost.localdomain) by polito.it (CommuniGate Pro SMTP 6.1.9) with ESMTPSA id 109260681; Sun, 14 Aug 2016 18:22:15 +0200 From: Mauricio Vasquez B To: nhorman@tuxdriver.com Cc: dev@dpdk.org Date: Sun, 14 Aug 2016 18:21:40 +0200 Message-Id: <1471191700-10556-1-git-send-email-mauricio.vasquez@polito.it> X-Mailer: git-send-email 1.9.1 X-FEAS-SYSTEM-WL: 130.192.180.41 Subject: [dpdk-dev] [PATCH] doc/versioning: add missing return value type in MAP_STATIC_SYMBOL example X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2016 16:22:16 -0000 The example only had as return type struct, it is actually struct rte_acl_ctx * Signed-off-by: Mauricio Vasquez B --- doc/guides/contributing/versioning.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/guides/contributing/versioning.rst b/doc/guides/contributing/versioning.rst index 92b4d7c..3799b76 100644 --- a/doc/guides/contributing/versioning.rst +++ b/doc/guides/contributing/versioning.rst @@ -331,11 +331,12 @@ defined, we add this .. code-block:: c - struct rte_acl_create_v21(const struct rte_acl_param *param, int debug) + struct rte_acl_ctx * + rte_acl_create_v21(const struct rte_acl_param *param, int debug) { ... } - MAP_STATIC_SYMBOL(struct rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v21); + MAP_STATIC_SYMBOL(struct rte_acl_ctx * rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v21); That tells the compiler that, when building a static library, any calls to the symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v21`` -- 1.9.1