diff mbox series

[2.0,v1,5/5] linux-dpdk: fix inconsistent *_INVALID defines

Message ID 1512547207-1806-6-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [2.0,v1,1/5] test: enable dpdk initialization before running validation on linux-dpdk | expand

Commit Message

Github ODP bot Dec. 6, 2017, 8 a.m. UTC
From: Yi He <yi.he@linaro.org>


Fixed inconsistent defines of ODP_BUFFER_INVALID, ODP_EVENT_INVALID
and ODP_TIMEOUT_INVALID as NULL instead of 0xffffffff for linux-dpdk
platform, to align with linux-generic as well as abi compatible headers.

Signed-off-by: Yi He <yi.he@linaro.org>

Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>

---
/** Email created from pull request 323 (heyi-linaro:2.0-linux-dpdk-make-check)
 ** https://github.com/Linaro/odp/pull/323
 ** Patch: https://github.com/Linaro/odp/pull/323.patch
 ** Base sha: 00c7441fae53949dd87855d48102f932f8f64537
 ** Merge commit sha: 97e968c4c23266a903016fe9bda392687b44b08f
 **/
 platform/linux-dpdk/include/odp/api/plat/buffer_types.h | 2 +-
 platform/linux-dpdk/include/odp/api/plat/event_types.h  | 2 +-
 platform/linux-dpdk/include/odp/api/plat/timer_types.h  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/platform/linux-dpdk/include/odp/api/plat/buffer_types.h b/platform/linux-dpdk/include/odp/api/plat/buffer_types.h
index 809768f3d..0f5f7baa1 100644
--- a/platform/linux-dpdk/include/odp/api/plat/buffer_types.h
+++ b/platform/linux-dpdk/include/odp/api/plat/buffer_types.h
@@ -31,7 +31,7 @@  extern "C" {
 
 typedef ODP_HANDLE_T(odp_buffer_t);
 
-#define ODP_BUFFER_INVALID _odp_cast_scalar(odp_buffer_t, 0xffffffff)
+#define ODP_BUFFER_INVALID _odp_cast_scalar(odp_buffer_t, NULL)
 
 typedef ODP_HANDLE_T(odp_buffer_seg_t);
 
diff --git a/platform/linux-dpdk/include/odp/api/plat/event_types.h b/platform/linux-dpdk/include/odp/api/plat/event_types.h
index e0f68e34e..ecda702c8 100644
--- a/platform/linux-dpdk/include/odp/api/plat/event_types.h
+++ b/platform/linux-dpdk/include/odp/api/plat/event_types.h
@@ -32,7 +32,7 @@  extern "C" {
 
 typedef ODP_HANDLE_T(odp_event_t);
 
-#define ODP_EVENT_INVALID _odp_cast_scalar(odp_event_t, 0xffffffff)
+#define ODP_EVENT_INVALID _odp_cast_scalar(odp_event_t, NULL)
 
 /**
  * Event types
diff --git a/platform/linux-dpdk/include/odp/api/plat/timer_types.h b/platform/linux-dpdk/include/odp/api/plat/timer_types.h
index 2ae8bfec8..3d97993ba 100644
--- a/platform/linux-dpdk/include/odp/api/plat/timer_types.h
+++ b/platform/linux-dpdk/include/odp/api/plat/timer_types.h
@@ -37,7 +37,7 @@  typedef ODP_HANDLE_T(odp_timer_t);
 
 typedef ODP_HANDLE_T(odp_timeout_t);
 
-#define ODP_TIMEOUT_INVALID  _odp_cast_scalar(odp_timeout_t, 0xffffffff)
+#define ODP_TIMEOUT_INVALID  _odp_cast_scalar(odp_timeout_t, NULL)
 
 /**
  * @}