From patchwork Wed Dec 6 08:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 120796 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6755652qgn; Wed, 6 Dec 2017 00:04:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMbHvP4fbnpaZexmPmSvMoufusV2Ko2lHpOQWI0dha2Fye4trh685CTdE4WedOTGqFGCMG+s X-Received: by 10.55.74.144 with SMTP id x138mr22528614qka.239.1512547473438; Wed, 06 Dec 2017 00:04:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512547473; cv=none; d=google.com; s=arc-20160816; b=tpbAQEPJDV7KU4uYGt15uVM6ZNVZyLQJmagV6Ysza2VqTgz3WhAuudC2X7JyD91ru9 p5Nr+DsUCTy6oM3PUPW91MCSBil5W8wAEgeoZxa8a71+YwKKn56TP96pMU3gF++ewmBp Me7w0Y2cjPtgVup2uaZzKwpvQyWWwjz1kIISDFInZbDd/wuwRA6OQO/ExGfITe0mRKMW QcJtsqG12X5R6tc44RXzqH+qj3EOQqVvfQn8wkaGwQS/h2zXxcZ1xvEizZEQM3EfVXky RTD7hS1bxmzz6UHt5IwouZ9BvLjcjjpo0Ob/kNlUnpdqsuQM3p/r3tNF07WEjobbB2bc 9XXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=ATGLYpL/Gff3s69/5Es3LgLa5ItfWoZDdJwwXGacp2I=; b=uvsypYjipt5mMB1rx24ozE01uBLWrBVlNE8nld1Df/K1GkxWOVTJpSIfHpwZHo+e7u E7lWbWg4jH8ROGWutPWFADlaxo0kEymEcPg57bJwpOzgtZCb3Cpw2QeM2arCmJjfkq6j hibIwadBeacq3JloUBYhLvLoColJAQQ4NtmIveNtiwnh1tSesvApmxlaEM1tjPRdXkO9 wQigEtT3VPxL312TWWu9wxsQSbjgrM9HDUFn1PHQxSdF1uKknTGATie06dAC5T1zgnQF k7GGmx+dnLj/LMC9cWxDTv0gULL1QXDqq3m4i61x3OD59YKVHcjefmq5aTkok5vDl+IG Ix1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id e44si754161qtf.10.2017.12.06.00.04.33; Wed, 06 Dec 2017 00:04:33 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 1F17260927; Wed, 6 Dec 2017 08:04:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id F1F2B60948; Wed, 6 Dec 2017 08:01:12 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 57F8B6090A; Wed, 6 Dec 2017 08:00:37 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id 491276091D for ; Wed, 6 Dec 2017 08:00:14 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward104j.mail.yandex.net (Yandex) with ESMTP id DBFD943549 for ; Wed, 6 Dec 2017 11:00:12 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 2nThVrjoms-0C7i2QSF; Wed, 06 Dec 2017 11:00:12 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 4V0UNXlOkv-0C6GgsDq; Wed, 06 Dec 2017 11:00:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 6 Dec 2017 11:00:07 +0300 Message-Id: <1512547207-1806-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512547207-1806-1-git-send-email-odpbot@yandex.ru> References: <1512547207-1806-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 323 Subject: [lng-odp] [PATCH 2.0 v1 5/5] linux-dpdk: fix inconsistent *_INVALID defines X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Yi He 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 Reviewed-by: Honnappa Nagarahalli --- /** 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 --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) /** * @}