X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_compat%2Frte_compat.h;h=45ab88f3b4f87b02bb473139612913afb3900200;hb=5fcb4dc3bad63b78a74771362ac1c6a7dd256870;hp=fb0dc196ea0eb8c15d1d1bb021fec07c607659b5;hpb=152143808d59d3537888c3deb312f6e6fae94df0;p=dpdk.git diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h index fb0dc196ea..45ab88f3b4 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,31 +79,31 @@ * 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 /* * No symbol versioning in use */ -#define VERSION_SYMBOL(b, e, v) +#define VERSION_SYMBOL(b, e, n) #define __vsym -#define BASE_SYMBOL(b, n) -#define BIND_DEFAULT_SYMBOL(b, v) +#define BASE_SYMBOL(b, e) +#define BIND_DEFAULT_SYMBOL(b, e, n) /* * RTE_BUILD_SHARED_LIB=n