[v3,1/3] eal: provide type to per lcore macro
Checks
Commit Message
Adjust the use of per lcore macro to provide type as the first argument
as to not require __typeof__ during expansion.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
---
lib/eal/common/eal_common_errno.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -28,7 +28,7 @@
static const char *sep = "";
#endif
#define RETVAL_SZ 256
- static RTE_DEFINE_PER_LCORE(char[RETVAL_SZ], retval);
+ static RTE_DEFINE_PER_LCORE(char, retval[RETVAL_SZ]);
char *ret = RTE_PER_LCORE(retval);
/* since some implementations of strerror_r throw an error