From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 09BEEC478 for ; Mon, 29 Jun 2015 15:59:57 +0200 (CEST) Received: from voip-107-15-76-160.kyn.rr.com ([107.15.76.160] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Z9ZbC-000712-I3; Mon, 29 Jun 2015 09:59:55 -0400 From: Neil Horman To: dev@dpdk.org Date: Mon, 29 Jun 2015 09:59:37 -0400 Message-Id: <1435586380-1673-1-git-send-email-nhorman@tuxdriver.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435088014-18973-1-git-send-email-nhorman@tuxdriver.com> References: <1435088014-18973-1-git-send-email-nhorman@tuxdriver.com> X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: [dpdk-dev] [PATCHv4 1/4] rte_compat.h : Clean up some typos 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: Mon, 29 Jun 2015 13:59:57 -0000 Clean up some macro definition typos and comments Signed-off-by: Neil Horman CC: thomas.monjalon@6wind.com --- lib/librte_compat/rte_compat.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h index fb0dc19..75920a1 100644 --- a/lib/librte_compat/rte_compat.h +++ b/lib/librte_compat/rte_compat.h @@ -54,7 +54,7 @@ * foo is exported as a global symbol. * * 2) rename the existing function int foo(char *string) to - * int __vsym foo_v20(char *string) + * int foo_v20(char *string) * * 3) Add this macro immediately below the function * VERSION_SYMBOL(foo, _v20, 2.0); @@ -63,7 +63,7 @@ * char foo(int value, int otherval) { ...} * * 5) Mark the newest version as the default version - * BIND_DEFAULT_SYMBOL(foo, 2.1); + * BIND_DEFAULT_SYMBOL(foo, _v21, 2.1); * */ @@ -79,21 +79,21 @@ * Creates a symbol version table entry binding symbol @DPDK_ to the internal * function name _ */ -#define VERSION_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", "RTE_STR(b)"@DPDK_"RTE_STR(n)) +#define VERSION_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@DPDK_" RTE_STR(n)) /* * BASE_SYMBOL * Creates a symbol version table entry binding unversioned symbol * to the internal function _ */ -#define BASE_SYMBOL(b, e) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", "RTE_STR(b)"@") +#define BASE_SYMBOL(b, e) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b)"@") /* - * BNID_DEFAULT_SYMBOL + * BIND_DEFAULT_SYMBOL * Creates a symbol version entry instructing the linker to bind references to * symbol to the internal symbol _ */ -#define BIND_DEFAULT_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", "RTE_STR(b)"@@DPDK_"RTE_STR(n)) +#define BIND_DEFAULT_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@@DPDK_" RTE_STR(n)) #define __vsym __attribute__((used)) #else @@ -103,7 +103,7 @@ #define VERSION_SYMBOL(b, e, v) #define __vsym #define BASE_SYMBOL(b, n) -#define BIND_DEFAULT_SYMBOL(b, v) +#define BIND_DEFAULT_SYMBOL(b, e, n) /* * RTE_BUILD_SHARED_LIB=n -- 2.1.0