@@ -1,5 +1,4 @@
ODP_INCLUDES = \
- -I$(top_builddir)/platform/@with_platform@/include \
-I$(top_srcdir)/platform/@with_platform@/include \
-I$(top_srcdir)/platform/@with_platform@/arch/@ARCH_DIR@ \
-I$(top_builddir)/include \
@@ -1,2 +1 @@
-include/odp/api/plat/static_inline.h
libodp-linux.pc
@@ -38,9 +38,6 @@ odpapiplatinclude_HEADERS = \
include/odp/api/plat/ticketlock_inlines.h \
include/odp/api/plat/ticketlock_inlines_api.h
-nodist_odpapiplatinclude_HEADERS = \
- include/odp/api/plat/static_inline.h
-
if !ODP_ABI_COMPAT
odpapiabiarchincludedir= $(includedir)/odp/api/abi
odpapiabiarchinclude_HEADERS = \
@@ -63,7 +63,7 @@ typedef struct odp_atomic_u32_s odp_atomic_u32_t;
* @{
*/
-#include <odp/api/plat/static_inline.h>
+#define _ODP_INLINE static inline
#include <odp/api/plat/atomic_inlines.h>
/**
@@ -75,7 +75,7 @@ typedef uint64_t __odp_bitwise odp_u64be_t;
typedef uint16_t __odp_bitwise odp_u16sum_t;
typedef uint32_t __odp_bitwise odp_u32sum_t;
-#include <odp/api/plat/static_inline.h>
+#define _ODP_INLINE static inline
#include <odp/api/plat/byteorder_inlines.h>
/**
@@ -32,6 +32,9 @@ typedef ODP_HANDLE_T(odp_packet_t);
typedef uint8_t odp_packet_seg_t;
+/* or it will be provided by packet_inlines.h */
+#define _ODP_HAVE_PACKET_SEG_NDX 1
+
static inline uint8_t _odp_packet_seg_to_ndx(odp_packet_seg_t seg)
{
return (uint8_t)seg;
@@ -53,7 +56,7 @@ typedef enum {
#define ODP_NUM_PACKET_COLORS 3
-#include <odp/api/plat/static_inline.h>
+#define _ODP_INLINE static inline
#include <odp/api/plat/packet_inlines.h>
#include <odp/api/plat/packet_inlines_api.h>
@@ -17,7 +17,7 @@
extern "C" {
#endif
-#include <odp/api/plat/static_inline.h>
+#define _ODP_INLINE static inline
#include <odp/api/plat/std_clib_inlines.h>
#ifdef __cplusplus
@@ -21,7 +21,7 @@ extern "C" {
* @{
*/
-#include <odp/api/plat/static_inline.h>
+#define _ODP_INLINE static inline
#include <odp/api/plat/sync_inlines.h>
/**
@@ -31,7 +31,7 @@ typedef struct odp_ticketlock_s {
} odp_ticketlock_t;
/* Include inlined versions of API functions */
-#include <odp/api/plat/static_inline.h>
+#define _ODP_INLINE static inline
#include <odp/api/plat/ticketlock_inlines.h>
#include <odp/api/plat/ticketlock_inlines_api.h>
@@ -25,8 +25,7 @@
/** @internal Inline function offsets */
extern const _odp_packet_inline_offset_t _odp_packet_inline;
-#include <odp/api/plat/static_inline.h>
-#if ODP_ABI_COMPAT == 1
+#ifndef _ODP_HAVE_PACKET_SEG_NDX
#include <odp/api/plat/strong_types.h>
/** @internal Inline function @param seg @return */
static inline uint32_t _odp_packet_seg_to_ndx(odp_packet_seg_t seg)
deleted file mode 100644
@@ -1,43 +0,0 @@
-/* Copyright (c) 2016, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-/**
- * @file
- *
- * Macro for static inline functions
- */
-
-#ifndef ODP_PLAT_STATIC_INLINE_H_
-#define ODP_PLAT_STATIC_INLINE_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @internal
- * @def ODP_ABI_COMPAT
- * Control ABI compatibility
- */
-
-/**
- * @internal
- * @def _ODP_INLINE
- * Define a function as inlined or not inlined (for ABI compatibility)
- */
-#if @ODP_ABI_COMPAT@
-#define ODP_ABI_COMPAT 1
-#define _ODP_INLINE
-#else
-#define ODP_ABI_COMPAT 0
-#define _ODP_INLINE static inline
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
@@ -22,7 +22,6 @@ AM_CONDITIONAL([PLATFORM_IS_LINUX_GENERIC],
[test "${with_platform}" = "linux-generic"])
AC_CONFIG_FILES([platform/linux-generic/Makefile
platform/linux-generic/libodp-linux.pc
- platform/linux-generic/include/odp/api/plat/static_inline.h
platform/linux-generic/test/Makefile
platform/linux-generic/test/validation/api/shmem/Makefile
platform/linux-generic/test/validation/api/pktio/Makefile
Replace static_inline.h header with unconditional defines of _ODP_INLINE macro (either to 'static inline' or to empty value) depending on the compilation place. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> --- Makefile.inc | 1 - platform/linux-generic/.gitignore | 1 - platform/linux-generic/Makefile.am | 3 -- .../linux-generic/include-abi/odp/api/abi/atomic.h | 2 +- .../include-abi/odp/api/abi/byteorder.h | 2 +- .../linux-generic/include-abi/odp/api/abi/packet.h | 5 ++- .../include-abi/odp/api/abi/std_clib.h | 2 +- .../linux-generic/include-abi/odp/api/abi/sync.h | 2 +- .../include-abi/odp/api/abi/ticketlock.h | 2 +- .../include/odp/api/plat/packet_inlines.h | 3 +- .../include/odp/api/plat/static_inline.h.in | 43 ---------------------- platform/linux-generic/m4/configure.m4 | 1 - 12 files changed, 10 insertions(+), 57 deletions(-) delete mode 100644 platform/linux-generic/include/odp/api/plat/static_inline.h.in -- 2.14.2