From d1d06aa241b97e2f1919ee990168a21319a66143 Mon Sep 17 00:00:00 2001 From: Petri Savolainen Date: Mon, 4 Jul 2016 18:42:25 +0300 Subject: 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 Reviewed-and-tested-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- test/performance/odp_l2fwd.c | 1 + test/performance/odp_pktio_perf.c | 1 + test/performance/odp_scheduling.c | 1 + test/platform/linux-generic/pktio_ipc/ipc_common.h | 1 + test/validation/classification/odp_classification_testsuites.h | 1 + test/validation/common/mask_common.c | 2 ++ test/validation/common/odp_cunit_common.h | 1 + 7 files changed, 8 insertions(+) (limited to 'test') 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 #include #include +#include #include 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 #include #include +#include #include #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 #include +#include #include 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 +#include #include #include #include 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 #include +#include 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 + /* * 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 +#include #include "CUnit/Basic.h" #include "CUnit/TestDB.h" #include -- cgit v1.2.3