[dpdk-dev,2/3] librte_compat: fix macro deffinition

Message ID 1432913219-11589-3-git-send-email-maciejx.t.gajdzica@intel.com (mailing list archive)
State Changes Requested, archived
Headers

Commit Message

Maciej Gajdzica May 29, 2015, 3:26 p.m. UTC
  From: Pawel Wodkowski <pawelx.wodkowski@intel.com>

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
---
 lib/librte_compat/rte_compat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon June 15, 2015, 9:12 a.m. UTC | #1
Hi,

More fixes are needed in rte_compat.h

2015-05-29 17:26, Maciej Gajdzica:
> --- a/lib/librte_compat/rte_compat.h
> +++ b/lib/librte_compat/rte_compat.h
> @@ -103,7 +103,7 @@
>  #define VERSION_SYMBOL(b, e, v)

Should be b,e,n

>  #define __vsym
>  #define BASE_SYMBOL(b, n)

Should be b,e

> -#define BIND_DEFAULT_SYMBOL(b, v)
> +#define BIND_DEFAULT_SYMBOL(b, v, n)

Should be b,e,n

This comment needs also to be fixed:
 *  BIND_DEFAULT_SYMBOL(foo, 2.1);
  

Patch

diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h
index 3a0fd2d..2a89b36 100644
--- a/lib/librte_compat/rte_compat.h
+++ b/lib/librte_compat/rte_compat.h
@@ -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, v, n)
 
 /*
  * RTE_BUILD_SHARED_LIB=n