This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 0955fbb395dc1651a8bcd473beae2154d39f4a69 (commit) from ce61337e6a7e955913fa64412c75d2066e0f121c (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 0955fbb395dc1651a8bcd473beae2154d39f4a69 Author: Balakrishna Garapati balakrishna.garapati@linaro.org Date: Thu Apr 6 08:48:56 2017 +0200
linux-generic: decouple odp_errno define from odp-linux
makes it easy to define odp_errno to dpdk rteerrno and fixes linking issues.
Signed-off-by: Balakrishna Garapati balakrishna.garapati@linaro.org Reviewed-and-tested-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 37835c3..5452915 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -125,6 +125,7 @@ noinst_HEADERS = \ ${srcdir}/include/odp_config_internal.h \ ${srcdir}/include/odp_crypto_internal.h \ ${srcdir}/include/odp_debug_internal.h \ + ${srcdir}/include/odp_errno_define.h \ ${srcdir}/include/odp_forward_typedefs_internal.h \ ${srcdir}/include/odp_internal.h \ ${srcdir}/include/odp_name_table_internal.h \ diff --git a/platform/linux-generic/include/odp_errno_define.h b/platform/linux-generic/include/odp_errno_define.h new file mode 100644 index 0000000..94c30e7 --- /dev/null +++ b/platform/linux-generic/include/odp_errno_define.h @@ -0,0 +1,26 @@ +/* Copyright (c) 2017, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * ODP error number define + */ + +#ifndef ODP_ERRNO_DEFINE_H_ +#define ODP_ERRNO_DEFINE_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +extern __thread int __odp_errno; + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h index b313b1f..e1267cf 100644 --- a/platform/linux-generic/include/odp_internal.h +++ b/platform/linux-generic/include/odp_internal.h @@ -20,11 +20,10 @@ extern "C" { #include <odp/api/init.h> #include <odp/api/cpumask.h> #include <odp/api/thread.h> +#include <odp_errno_define.h> #include <stdio.h> #include <sys/types.h>
-extern __thread int __odp_errno; - #define MAX_CPU_NUMBER 128
typedef struct {
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/Makefile.am | 1 + .../include/{odp/api/cpu.h => odp_errno_define.h} | 12 +++++------- platform/linux-generic/include/odp_internal.h | 3 +-- 3 files changed, 7 insertions(+), 9 deletions(-) copy platform/linux-generic/include/{odp/api/cpu.h => odp_errno_define.h} (52%)
hooks/post-receive