aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2016-07-04 18:42:25 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-07-05 15:09:30 +0300
commitd1d06aa241b97e2f1919ee990168a21319a66143 (patch)
tree61ece42b34c19ecc0692087a9ef179e287037016 /test
parentc2784fbafbf8a29b6daa48429133e25b777536cf (diff)
linux-gen: std_types: remove extra c headers
Removed C header includes which are not needed for API definitions. ODP API depends on uint64_t, etc types in stdint.h, but not other C headers. As an exception, stdbool.h remains since 'true' and 'false' definitions may be used with odp_bool_t. It could be also removed later since true/false are not part of the API (where as uint64_t, etc types). Application needs to include other C library headers directly. ODP API does not specify which headers are included by odp_api.h. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/performance/odp_l2fwd.c1
-rw-r--r--test/performance/odp_pktio_perf.c1
-rw-r--r--test/performance/odp_scheduling.c1
-rw-r--r--test/platform/linux-generic/pktio_ipc/ipc_common.h1
-rw-r--r--test/validation/classification/odp_classification_testsuites.h1
-rw-r--r--test/validation/common/mask_common.c2
-rw-r--r--test/validation/common/odp_cunit_common.h1
7 files changed, 8 insertions, 0 deletions
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index 2ceee74ff..164f7f5e0 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -19,6 +19,7 @@
#include <getopt.h>
#include <unistd.h>
#include <errno.h>
+#include <inttypes.h>
#include <test_debug.h>
diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c
index 98ec681eb..18a1aa2a2 100644
--- a/test/performance/odp_pktio_perf.c
+++ b/test/performance/odp_pktio_perf.c
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <inttypes.h>
#include <test_debug.h>
#define PKT_BUF_NUM 8192
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c
index c575b70df..bd37f9bd4 100644
--- a/test/performance/odp_scheduling.c
+++ b/test/performance/odp_scheduling.c
@@ -12,6 +12,7 @@
#include <string.h>
#include <stdlib.h>
+#include <inttypes.h>
#include <test_debug.h>
diff --git a/test/platform/linux-generic/pktio_ipc/ipc_common.h b/test/platform/linux-generic/pktio_ipc/ipc_common.h
index 7bc483f78..a6b7c581b 100644
--- a/test/platform/linux-generic/pktio_ipc/ipc_common.h
+++ b/test/platform/linux-generic/pktio_ipc/ipc_common.h
@@ -6,6 +6,7 @@
#define _POSIX_C_SOURCE 200809L
#include <stdlib.h>
+#include <inttypes.h>
#include <string.h>
#include <getopt.h>
#include <unistd.h>
diff --git a/test/validation/classification/odp_classification_testsuites.h b/test/validation/classification/odp_classification_testsuites.h
index 023a26721..aea3de1b1 100644
--- a/test/validation/classification/odp_classification_testsuites.h
+++ b/test/validation/classification/odp_classification_testsuites.h
@@ -9,6 +9,7 @@
#include <odp_api.h>
#include <odp_cunit_common.h>
+#include <stdbool.h>
extern odp_testinfo_t classification_suite[];
extern odp_testinfo_t classification_suite_basic[];
diff --git a/test/validation/common/mask_common.c b/test/validation/common/mask_common.c
index 500136499..b31534c64 100644
--- a/test/validation/common/mask_common.c
+++ b/test/validation/common/mask_common.c
@@ -9,6 +9,8 @@
#include "odp_cunit_common.h"
#include "mask_common.h"
+#include <stdlib.h>
+
/*
* The following strings are used to build masks with odp_*mask_from_str().
* Both 0x prefixed and non prefixed hex values are supported.
diff --git a/test/validation/common/odp_cunit_common.h b/test/validation/common/odp_cunit_common.h
index 52fe203a4..486a5ec51 100644
--- a/test/validation/common/odp_cunit_common.h
+++ b/test/validation/common/odp_cunit_common.h
@@ -14,6 +14,7 @@
#define ODP_CUNICT_COMMON_H
#include <stdint.h>
+#include <inttypes.h>
#include "CUnit/Basic.h"
#include "CUnit/TestDB.h"
#include <odp_api.h>