aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-12-14 16:13:09 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2021-12-23 15:24:35 +0200
commit98e75e98317509d7cd580145102688cd7d5a9448 (patch)
treee1849919d5be05015e089ef56cad50b558bb58fa
parent2987ed8e9047d899a43da5af2cba3d5e4ecd054a (diff)
linux-gen: shm: stop listing deprecated ODP_SHM_SW_ONLY flag as supported
Stop listing deprecated SHM flag ODP_SHM_SW_ONLY as supported, as it is no longer used by any example applications or tests. An application can still enable the flag with '--enable-deprecated' configuration option. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
-rw-r--r--platform/linux-generic/odp_shared_memory.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c
index 424d32ccf..74e5c9864 100644
--- a/platform/linux-generic/odp_shared_memory.c
+++ b/platform/linux-generic/odp_shared_memory.c
@@ -8,6 +8,7 @@
#include <odp_config_internal.h>
#include <odp_debug_internal.h>
#include <odp/api/debug.h>
+#include <odp/api/deprecated.h>
#include <odp/api/std_types.h>
#include <odp/api/shared_memory.h>
#include <odp/api/plat/strong_types.h>
@@ -17,8 +18,14 @@
#include <string.h>
/* Supported ODP_SHM_* flags */
-#define SUPPORTED_SHM_FLAGS (ODP_SHM_SW_ONLY | ODP_SHM_PROC | ODP_SHM_SINGLE_VA | ODP_SHM_EXPORT | \
- ODP_SHM_HP | ODP_SHM_NO_HP)
+#if ODP_DEPRECATED_API
+ #define DEPRECATED_SHM_FLAGS (ODP_SHM_SW_ONLY)
+#else
+ #define DEPRECATED_SHM_FLAGS 0
+#endif
+
+#define SUPPORTED_SHM_FLAGS (ODP_SHM_PROC | ODP_SHM_SINGLE_VA | ODP_SHM_EXPORT | \
+ ODP_SHM_HP | ODP_SHM_NO_HP | DEPRECATED_SHM_FLAGS)
static inline uint32_t from_handle(odp_shm_t shm)
{