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 05f8f96ae606eecfff48e3544885d43b9f541f3c (commit)
via e971043e275307634472b35ce394326216c3e301 (commit)
from af5205809e3921ea0c4db5771ea1da5d2f0eaaf5 (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 05f8f96ae606eecfff48e3544885d43b9f541f3c
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Tue Feb 14 23:32:00 2017 +0300
travis: catch doxygen errors
make doxygen-doc does not return negative code on
errors. Do it manually.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/.travis.yml b/.travis.yml
index e2937e0..83ec65f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -118,7 +118,9 @@ script:
- ./bootstrap
- ./configure
- - make doxygen-doc
+# doxygen does not trap on warnings, check for them here.
+ - make doxygen-doc |tee doxygen.log
+ - fgrep -rvq warning ./doxygen.log
- make distcheck
- ./bootstrap
commit e971043e275307634472b35ce394326216c3e301
Author: Andriy Berestovskyy <Andriy.Berestovskyy(a)cavium.com>
Date: Fri Feb 17 11:41:28 2017 +0100
doc: fix k.org links in CONTRIBUTING
Fix links for kernel.org code style document.
Signed-off-by: Andriy Berestovskyy <Andriy.Berestovskyy(a)cavium.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/CONTRIBUTING b/CONTRIBUTING
index a81fd8d..ab77fd3 100644
--- a/CONTRIBUTING
+++ b/CONTRIBUTING
@@ -13,7 +13,8 @@ the contributing requirements for ODP
== New Development
-ODP code shall be written with the kernel coding style https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Docume… Coding Style]
+ODP code shall be written with the kernel coding style
+https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst[Kernel Coding Style]
ODP code shall be documented using the doxygen style described in the
"Documenting the code" section.
@@ -38,7 +39,8 @@ Signed-off-by: tag line a copy of the description follows:
Signed-off-by: this is a developer's certification that he or she has
the right to submit the patch for inclusion into the [project]. It is
an agreement to the Developer's Certificate of Origin, the full text of
-which can be found in https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Docume… Patches]
+which can be found in
+https://github.com/torvalds/linux/blob/master/Documentation/process/submitting-patches.rst[Submitting Patches]
Code without a proper signoff cannot be merged into the mainline.
-----------------------------------------------------------------------
Summary of changes:
.travis.yml | 4 +++-
CONTRIBUTING | 6 ++++--
2 files changed, 7 insertions(+), 3 deletions(-)
hooks/post-receive
--
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 32b94edb4961a3ac1a2e5c90f65ee3f118852151 (commit)
via 9420b7953a05f2759524234a26e7e2a774a23769 (commit)
via 622103adf9b6d8e73e86c751469ee2523f4dd952 (commit)
from 981b778400a726121400dd4535f3cc2006d4ac67 (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 32b94edb4961a3ac1a2e5c90f65ee3f118852151
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Tue Feb 14 23:31:59 2017 +0300
travis: clang 3.8
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/.travis.yml b/.travis.yml
index 8a99005..e2937e0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,8 +46,11 @@ matrix:
- compiler: clang
addons:
apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ - llvm-toolchain-precise-3.8
packages:
- - clang
+ - clang-3.8
before_install:
- echo 1000 | sudo tee /proc/sys/vm/nr_hugepages
@@ -60,6 +63,7 @@ before_install:
- sudo pip install coverage
- gem install asciidoctor
- PATH=${PATH//:\.\/node_modules\/\.bin/}
+ - if [ "$CC" = "clang" ]; then export CXX="clang++-3.8" CC="clang-3.8" LD="clang-3.8"; fi
# Install cunit for the validation tests because distro version is too old and fails C99 compile
- sudo apt-get remove libcunit1-dev libcunit1
commit 9420b7953a05f2759524234a26e7e2a774a23769
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Tue Feb 14 23:31:58 2017 +0300
travis: switch to ubuntu trusty
ubuntu trusty has updated doxygen 1.8.4 which is the same
stable version 1.8 which is described in DEPENDANCIES file.
Now doxygen do not generate any warnings. Compiler version
stays the same 4.8 for gcc.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/.travis.yml b/.travis.yml
index 66248b4..8a99005 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,7 @@
language: c
sudo: required
+dist: trusty
env:
global:
# COVERITY_SCAN_TOKEN
@@ -34,13 +35,13 @@ env:
matrix:
include:
- - compiler: gcc-4.8
+ - compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- - gcc-4.8
+ - gcc
env: MY_CF="-O0 -coverage" MY_LDF="--coverage" DOCOV=1
- compiler: clang
addons:
@@ -61,6 +62,7 @@ before_install:
- PATH=${PATH//:\.\/node_modules\/\.bin/}
# Install cunit for the validation tests because distro version is too old and fails C99 compile
+ - sudo apt-get remove libcunit1-dev libcunit1
- export CUNIT_VERSION=2.1-3
- curl -sSOL https://github.com/Linaro/libcunit/releases/download/${CUNIT_VERSION}/CUnit…
- tar -jxf *.bz2
@@ -124,7 +126,7 @@ script:
- sudo rm -rf $KSRC
after_success:
- - if [ -n "$DOCOV" ]; then find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov-4.8 {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy; fi
+ - if [ -n "$DOCOV" ]; then find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy; fi
addons:
coverity_scan:
commit 622103adf9b6d8e73e86c751469ee2523f4dd952
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Wed Feb 15 20:19:20 2017 +0300
travis: mirror cunit on github
because of cunit fails to download from sourceforge.net
it's reasonable place source to github.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Mike Holmes <mike.holmes(a)linaro.org>
diff --git a/.travis.yml b/.travis.yml
index 9544ec8..66248b4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -62,7 +62,7 @@ before_install:
# Install cunit for the validation tests because distro version is too old and fails C99 compile
- export CUNIT_VERSION=2.1-3
- - curl -sSOL http://sourceforge.net/projects/cunit/files/CUnit/${CUNIT_VERSION}/CUnit-${…
+ - curl -sSOL https://github.com/Linaro/libcunit/releases/download/${CUNIT_VERSION}/CUnit…
- tar -jxf *.bz2
- cd CUnit*
- ./bootstrap
-----------------------------------------------------------------------
Summary of changes:
.travis.yml | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
hooks/post-receive
--
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, api-next has been updated
via fbab0b2bab55742ceface59778de8606e3bd062c (commit)
via 3528ca70668da492a2f1fe85c167b2024406dd8d (commit)
via 332d48c9c25504b3cbb9451e292a98c15df17ccb (commit)
via 0d3ee95d0fb3712631d81c5e6f4fb5f176617c5e (commit)
via 0c3ee63ae7b133defa2e74d2573f541d68dae040 (commit)
via 8f517b3a278d3742b182b67d6b50f9452dd3e519 (commit)
via 2afd00967b751ef3a9fe45d2f966f35956c93520 (commit)
via 969d1c74ef21b77df01b120297d4156b87183894 (commit)
from a1bcdb71f9c5525e02a9609fb32b767f4f76b082 (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 fbab0b2bab55742ceface59778de8606e3bd062c
Merge: a1bcdb7 3528ca7
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Thu Feb 9 22:47:56 2017 +0300
Merge branch 'master' into api-next
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
-----------------------------------------------------------------------
Summary of changes:
.travis.yml | 15 ++++
helper/include/odp/helper/odph_cuckootable.h | 80 ++++++++++++++++++---
helper/include/odp/helper/odph_hashtable.h | 75 +++++++++++++++++++-
helper/include/odp/helper/odph_iplookuptable.h | 97 ++++++++++++++++++++++----
helper/include/odp/helper/odph_lineartable.h | 65 ++++++++++++++++-
helper/include/odp/helper/table.h | 10 ++-
6 files changed, 314 insertions(+), 28 deletions(-)
hooks/post-receive
--
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 3528ca70668da492a2f1fe85c167b2024406dd8d (commit)
from 332d48c9c25504b3cbb9451e292a98c15df17ccb (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 3528ca70668da492a2f1fe85c167b2024406dd8d
Author: Bill Fischofer <bill.fischofer(a)linaro.org>
Date: Thu Feb 9 13:35:35 2017 -0600
doc: helper: add missing doxygen for helper table functions
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2865 by adding
missing doxygen documentation for helper table functions
Signed-off-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/helper/include/odp/helper/odph_cuckootable.h b/helper/include/odp/helper/odph_cuckootable.h
index d569980..55f43fe 100644
--- a/helper/include/odp/helper/odph_cuckootable.h
+++ b/helper/include/odp/helper/odph_cuckootable.h
@@ -52,28 +52,92 @@
extern "C" {
#endif
+/**
+ * @addtogroup odph_cuckootable ODPH CUCKOO TABLE
+ * @{
+ */
+
+/**
+ * Create a cuckoo table
+ *
+ * @param name Name of the cuckoo table to be created
+ * @param capacity Number of elements table may store
+ * @param key_size Size of the key for each element
+ * @param value_size Size of the value stored for each element
+ *
+ * @return Handle of created cuckoo table
+ * @retval NULL Create failed
+ */
odph_table_t odph_cuckoo_table_create(
const char *name,
uint32_t capacity,
uint32_t key_size,
uint32_t value_size);
+/**
+ * Lookup a cuckoo table by name
+ *
+ * @param name Name of the table to be located
+ *
+ * @return Handle of the located cuckoo table
+ * @retval NULL No table matching supplied name found
+ */
odph_table_t odph_cuckoo_table_lookup(const char *name);
+/**
+ * Destroy a cuckoo table
+ *
+ * @param table Handle of the cuckoo table to be destroyed
+ *
+ * @retval 0 Success
+ * @retval < 0 Failure
+ */
int odph_cuckoo_table_destroy(odph_table_t table);
-int odph_cuckoo_table_put_value(
- odph_table_t table,
- void *key, void *value);
+/**
+ * Insert a key/value pair into a cuckoo table
+ *
+ * @param table Table into which value is to be stored
+ * @param key Address of an odph_table_t to be used as key
+ * @param value Value to be associated with specified key
+ *
+ * @retval >= 0 Success
+ * @retval < 0 Failure
+ */
+int odph_cuckoo_table_put_value(odph_table_t table, void *key, void *value);
-int odph_cuckoo_table_get_value(
- odph_table_t table,
- void *key, void *buffer,
- uint32_t buffer_size);
+/**
+ * Retrieve a value from a cuckoo table
+ *
+ * @param table Table from which value is to be retrieved
+ * @param key Address of an odph_table_t to be used as key
+ * @param[out] buffer Address of buffer to receive resulting value
+ * @param buffer_size Size of supplied buffer
+ *
+ * @retval 0 Success
+ * @retval 1 Success
+ * @retval < 0 Failure
+ */
+int odph_cuckoo_table_get_value(odph_table_t table,
+ void *key, void *buffer,
+ uint32_t buffer_size);
+/**
+ * Remove a value from a cuckoo table
+ *
+ * @param table Table from which value is to be removed
+ * @param key Address of odph_table_t to be used as key
+ *
+ * @retval >= 0 Success
+ * @retval < 0 Failure
+ */
int odph_cuckoo_table_remove_value(odph_table_t table, void *key);
-extern odph_table_ops_t odph_cuckoo_table_ops;
+extern odph_table_ops_t odph_cuckoo_table_ops; /**< @internal */
+
+/**
+ * @}
+ */
#ifdef __cplusplus
}
diff --git a/helper/include/odp/helper/odph_hashtable.h b/helper/include/odp/helper/odph_hashtable.h
index bb75cb9..1f91f31 100644
--- a/helper/include/odp/helper/odph_hashtable.h
+++ b/helper/include/odp/helper/odph_hashtable.h
@@ -19,22 +19,93 @@
extern "C" {
#endif
+/**
+ * @addtogroup odph_hash_table ODPH HASH TABLE
+ * @{
+ */
+
+/**
+ * Create a hash table
+ *
+ * @param name Name of the hash table to be created.
+ * @param capacity Number of elements table may store
+ * @param key_size Size of the key for each element
+ * @param value_size Size of the value stored for each element
+ *
+ * @return Handle of created hash table
+ * @retval NULL Create failed
+ */
odph_table_t odph_hash_table_create(const char *name,
uint32_t capacity,
uint32_t key_size,
uint32_t value_size);
+
+/**
+ * Lookup a hash table by name
+ *
+ * @param name Name of the table to be located
+ *
+ * @return Handle of the located hash table
+ * @return NULL No table matching supplied name found
+ */
odph_table_t odph_hash_table_lookup(const char *name);
+
+/**
+ * Destroy a hash table
+ *
+ * @param table Handle of the hash table to be destroyed
+ *
+ * @retval 0 Success
+ * @retval < 0 Failure
+ */
int odph_hash_table_destroy(odph_table_t table);
+
+/**
+ * Insert a key/value pair into a hash table
+ *
+ * @param table Table into which value is to be stored
+ * @param key Address of an odph_table_t to be used as key
+ * @param value Value to be associated with specified key
+ *
+ * @retval >= 0 Success
+ * @retval < 0 Failure
+ */
int odph_hash_put_value(odph_table_t table, void *key, void *value);
+
+/**
+ * Retrieve a value from a hash table
+ *
+ * @param table Table from which value is to be retrieved
+ * @param key Address of an odph_table_t to be used as key
+ * @param[out] buffer Address of buffer to receive resulting value
+ * @param buffer_size Size of supplied buffer
+ *
+ * @retval 0 Success
+ * @retval 1 Success
+ * @retval < 0 Failure
+ */
int odph_hash_get_value(odph_table_t table, void *key, void *buffer,
uint32_t buffer_size);
+
+/**
+ * Remove a value from a hash table
+ *
+ * @param table Table from which value is to be removed
+ * @param key Address of odph_table_t to be used as key
+ *
+ * @retval >= 0 Success
+ * @retval < 0 Failure
+ */
int odph_hash_remove_value(odph_table_t table, void *key);
-extern odph_table_ops_t odph_hash_table_ops;
+extern odph_table_ops_t odph_hash_table_ops; /**< @internal */
+
+/**
+ * @}
+ */
#ifdef __cplusplus
}
#endif
#endif
-
diff --git a/helper/include/odp/helper/odph_iplookuptable.h b/helper/include/odp/helper/odph_iplookuptable.h
index 0ae6b37..84c2cfd 100644
--- a/helper/include/odp/helper/odph_iplookuptable.h
+++ b/helper/include/odp/helper/odph_iplookuptable.h
@@ -24,32 +24,99 @@
extern "C" {
#endif
+/**
+ * @addtogroup odph_iplookuptable ODPH IP LOOKUP TABLE
+ * @{
+ */
+
+/**
+ * IP Lookup Prefix
+ */
typedef struct {
- uint32_t ip;
- uint8_t cidr;
+ uint32_t ip; /**< IPv4 address */
+ uint8_t cidr; /**< CIDR value for prefix matching */
} odph_iplookup_prefix_t;
-odph_table_t odph_iplookup_table_create(
- const char *name,
- uint32_t ODP_IGNORED_1,
- uint32_t ODP_IGNORED_2,
- uint32_t value_size);
+/**
+ * Create an IP lookup table
+ *
+ * @param name Name of the table to be created
+ * @param ODP_IGNORED_1 Unused
+ * @param ODP_IGNORED_2 Unused
+ * @param value_size Byte size of each entry in the table
+ *
+ * @return Handle of the created ip lookup table
+ * @retval NULL If table create failed
+ */
+odph_table_t odph_iplookup_table_create(const char *name,
+ uint32_t ODP_IGNORED_1,
+ uint32_t ODP_IGNORED_2,
+ uint32_t value_size);
+/**
+ * Lookup an IP lookup table by name
+ *
+ * @param name Name of the table to be located
+ *
+ * @return Handle of the located ip lookup table
+ * @retval NULL No table matching supplied name found
+ */
odph_table_t odph_iplookup_table_lookup(const char *name);
+/**
+ * Destroy an IP lookup table
+ *
+ * @param table Handle of the ip lookup table to be destroyed
+ *
+ * @retval 0 Success
+ * @retval < 0 Failure
+ */
int odph_iplookup_table_destroy(odph_table_t table);
-int odph_iplookup_table_put_value(
- odph_table_t table, void *key, void *value);
+/**
+ * Insert a key/value pair into an ip lookup table
+ *
+ * @param table Table into which value is to be stored
+ * @param key Address of an odph_iplookup_prefix_t to be used as key
+ * @param value Value to be associated with specified key
+ *
+ * @retval >= 0 Success
+ * @retval < 0 Failure
+ */
+int odph_iplookup_table_put_value(odph_table_t table, void *key, void *value);
+
+/**
+ * Retrieve a value from an iplookup table
+ *
+ * @param table Table from which value is to be retrieved
+ * @param key Address of an odph_iplookup_prefix_t to be used as key
+ * @param[out] buffer Address of buffer to receive resulting value
+ * @param buffer_size Size of supplied buffer
+ *
+ * @retval 0 Success
+ * @retval 1 Success
+ * @retval < 0 Failure
+ */
+int odph_iplookup_table_get_value(odph_table_t table, void *key,
+ void *buffer, uint32_t buffer_size);
-int odph_iplookup_table_get_value(
- odph_table_t table, void *key,
- void *buffer, uint32_t buffer_size);
+/**
+ * Remove a value from an iplookup table
+ *
+ * @param table Table from which value is to be removed
+ * @param key Address of odph_iplookup_prefix_t to be used as key
+ *
+ * @retval >= 0 Success
+ * @retval < 0 Failure
+ *
+ */
+int odph_iplookup_table_remove_value(odph_table_t table, void *key);
-int odph_iplookup_table_remove_value(
- odph_table_t table, void *key);
+extern odph_table_ops_t odph_iplookup_table_ops; /**< @internal */
-extern odph_table_ops_t odph_iplookup_table_ops;
+/**
+ * @}
+ */
#ifdef __cplusplus
}
diff --git a/helper/include/odp/helper/odph_lineartable.h b/helper/include/odp/helper/odph_lineartable.h
index 0b56b7f..cd9fda3 100644
--- a/helper/include/odp/helper/odph_lineartable.h
+++ b/helper/include/odp/helper/odph_lineartable.h
@@ -20,21 +20,82 @@
extern "C" {
#endif
+/**
+ * @addtogroup odph_lineartable ODPH LINEAR TABLE
+ * @{
+ */
+
+/**
+ * Create a linear table
+ *
+ * @param name Name of the linear table to be created
+ * @param capacity Number of elements table may store
+ * @param ODP_IGNORED Ignored parameter
+ * @param value_size Size of the value stored for each element
+ *
+ * @return Handle of created linear table
+ * @return NULL Create failed
+ */
odph_table_t odph_linear_table_create(const char *name,
uint32_t capacity,
uint32_t ODP_IGNORED,
uint32_t value_size);
+
+/**
+ * Lookup a linear table
+ *
+ * @param name Name of the table to be located
+ *
+ * @return Handle of the located linear table
+ * @retval NULL No table matching supplied name found
+ */
odph_table_t odph_linear_table_lookup(const char *name);
+
+/**
+ * Destroy a linear table
+ *
+ * @param table Handle of linear table to be destroyed
+ *
+ * @retval 0 Success
+ * @retval < 0 Failure
+ */
int odph_linear_table_destroy(odph_table_t table);
+
+/**
+ * Insert a value into a linear table
+ *
+ * @param table Table into which value is to be stored
+ * @param key Index value used as key
+ * @param value Value to be assoceiated with specified key index
+ *
+ * @retval >= 0 Success
+ * @retval < 0 Failure
+ */
int odph_linear_put_value(odph_table_t table, void *key, void *value);
+
+/**
+ * Retrieve a value from a linear table
+ *
+ * @param table Table from which value is to be retrieved
+ * @param key Index value used as key
+ * @param[out] buffer Address of buffer to receive resulting value
+ * @param buffer_size Size of supplied buffer
+ *
+ * @retval 0 Success
+ * @retval 1 Success
+ * @retval < 0 Failure
+ */
int odph_linear_get_value(odph_table_t table, void *key, void *buffer,
uint32_t buffer_size);
-extern odph_table_ops_t odph_linear_table_ops;
+extern odph_table_ops_t odph_linear_table_ops; /**< @internal */
+
+/**
+ * @}
+ */
#ifdef __cplusplus
}
#endif
#endif
-
diff --git a/helper/include/odp/helper/table.h b/helper/include/odp/helper/table.h
index 81022e5..b3440ef 100644
--- a/helper/include/odp/helper/table.h
+++ b/helper/include/odp/helper/table.h
@@ -80,6 +80,11 @@
extern "C" {
#endif
+/**
+ * @addtogroup odph_tables ODPH TABLES
+ * @{
+ */
+
#include <stdint.h>
/**
@@ -228,9 +233,12 @@ typedef struct odph_table_ops_t {
odph_table_remove_value f_remove;
} odph_table_ops_t;
+/**
+ * @}
+ */
+
#ifdef __cplusplus
}
#endif
#endif
-
-----------------------------------------------------------------------
Summary of changes:
helper/include/odp/helper/odph_cuckootable.h | 80 ++++++++++++++++++---
helper/include/odp/helper/odph_hashtable.h | 75 +++++++++++++++++++-
helper/include/odp/helper/odph_iplookuptable.h | 97 ++++++++++++++++++++++----
helper/include/odp/helper/odph_lineartable.h | 65 ++++++++++++++++-
helper/include/odp/helper/table.h | 10 ++-
5 files changed, 299 insertions(+), 28 deletions(-)
hooks/post-receive
--
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, api-next has been updated
via a1bcdb71f9c5525e02a9609fb32b767f4f76b082 (commit)
from f21b2d23874d517e147a3e096e99aa272b99dbe4 (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 a1bcdb71f9c5525e02a9609fb32b767f4f76b082
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Fri Jan 27 00:11:33 2017 +0300
linux-gen: support older libconfig version
Travis CI uses old libconfig8 amd64 1.3.2-2ubuntu2,
which does not have defines for errors. Move error print
under ifdef to fix compilation.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Reviewed-by: Christophe Milard <christophe.milard(a)linaro.org>
diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c
index 2cd8fe3..685e02f 100644
--- a/platform/linux-generic/odp_init.c
+++ b/platform/linux-generic/odp_init.c
@@ -130,12 +130,17 @@ static int read_configfile(void)
if (config_filename) {
ODP_DBG("Reading configuration file: %s\n", config_filename);
if (!config_read_file(cf, config_filename)) {
+#if defined(LIBCONFIG_VER_MAJOR) && LIBCONFIG_VER_MAJOR >= 1 && \
+ LIBCONFIG_VER_MINOR >= 4
ODP_ERR("%s:%d - %s\n",
config_error_file(cf),
config_error_line(cf),
config_error_text(cf));
+#else
+ ODP_ERR("config_read_file\n");
+#endif
config_destroy(cf);
- return(-1);
+ return -1;
}
}
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_init.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
hooks/post-receive
--