From patchwork Tue Feb 3 11:04:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 44215 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 04B512034D for ; Tue, 3 Feb 2015 11:04:43 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id q59sf20256255wes.1 for ; Tue, 03 Feb 2015 03:04:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=wT6gtf9GUKCY5XmHziazpxZIqMxjsn8WcAog7aO+eK0=; b=LNzzicX+NRkeZAqbnDCHaPvcLTz629Z+yvwT8ZvEr+4SXT1N+9SjoVq/dlTG/3a2dN 8EPTw2/hIYUQKZ7POGZdUoZJtnxz+D8LEXkIbIAyCqp8jU5ZWFDqrGYCLmdH6E0JXoQF zz+uZAc4Eoc3+23uOx0CWH/J3newuuX8J0fZN0lHvWutk9Tj501Fa/32fnpgeTm5Fiog OC0Y4tqTQnFyn7uwQhgYlXakd6YgMX4VyQl/u1J2KO3fsQ4tofjJEOh2zu3LR19uR/uF YBat1qb6PDh3Sthl6/xt9tBTq8Zy/8h/yJrYIctJt6vGOXfK2iBaO66XWK6REfeUrLnh UCjQ== X-Gm-Message-State: ALoCoQnG78bUkNWitisDrl/iap7xRGuEysQCBH+eoECdTydaoGZr7uVIZCpF45s+B0yJXHUqXbHa X-Received: by 10.180.182.47 with SMTP id eb15mr1841455wic.5.1422961482315; Tue, 03 Feb 2015 03:04:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.162 with SMTP id f2ls754216lam.5.gmail; Tue, 03 Feb 2015 03:04:42 -0800 (PST) X-Received: by 10.152.10.4 with SMTP id e4mr23849160lab.62.1422961481981; Tue, 03 Feb 2015 03:04:41 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id ai4si18933112lbc.10.2015.02.03.03.04.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Feb 2015 03:04:41 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id s18so50476447lam.3 for ; Tue, 03 Feb 2015 03:04:41 -0800 (PST) X-Received: by 10.112.176.236 with SMTP id cl12mr4496521lbc.3.1422961481852; Tue, 03 Feb 2015 03:04:41 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1863692lbj; Tue, 3 Feb 2015 03:04:41 -0800 (PST) X-Received: by 10.140.44.34 with SMTP id f31mr38087006qga.3.1422961480614; Tue, 03 Feb 2015 03:04:40 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c89si26562382qge.80.2015.02.03.03.04.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 03:04:40 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIbHZ-0006py-KW; Tue, 03 Feb 2015 11:04:37 +0000 Received: from mail-la0-f47.google.com ([209.85.215.47]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIbHT-0006pt-Jc for lng-odp@lists.linaro.org; Tue, 03 Feb 2015 11:04:31 +0000 Received: by mail-la0-f47.google.com with SMTP id hz20so50274351lab.6 for ; Tue, 03 Feb 2015 03:04:25 -0800 (PST) X-Received: by 10.152.5.101 with SMTP id r5mr23598495lar.33.1422961465266; Tue, 03 Feb 2015 03:04:25 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id k4sm4954020lam.43.2015.02.03.03.04.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Feb 2015 03:04:24 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Tue, 3 Feb 2015 12:04:20 +0100 Message-Id: <1422961460-30920-1-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCHv2] api: odp_event.h: remove ODP_EVENT_TYPE_INVALID X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ola.liljedahl@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Remove ODP_EVENT_TYPE_INVALID from odp_event.h. Update description of odp_event_type(), is does not return ODP_EVENT_TYPE_INVALID. Remove ODP_POOL_TYPE_INVALID from odp_pool.h. It was defined to ODP_EVENT_TYPE_INVALID. Signed-off-by: Ola Liljedahl --- (This document/code contribution attached is provided under the terms of agreement LES-LTM-21309) Changed description of odp_event_type() after review by Petri S. include/odp/api/event.h | 9 ++------- include/odp/api/pool.h | 2 -- platform/linux-generic/include/odp/plat/event_types.h | 1 - 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/odp/api/event.h b/include/odp/api/event.h index 50c031a..d0413b9 100644 --- a/include/odp/api/event.h +++ b/include/odp/api/event.h @@ -36,11 +36,6 @@ extern "C" { */ /** - * @def ODP_EVENT_TYPE_INVALID - * Invalid event type - */ - -/** * @def ODP_EVENT_BUFFER * Buffer event */ @@ -61,11 +56,11 @@ extern "C" { */ /** - * Event type + * Get event type * * @param event Event handle * - * @return Event type or ODP_EVENT_TYPE_INVALID + * @return Event type */ int odp_event_type(odp_event_t event); diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 1582102..d09d92e 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -79,8 +79,6 @@ typedef struct odp_pool_param_t { } odp_pool_param_t; -/** Invalid pool type */ -#define ODP_POOL_TYPE_INVALID ODP_EVENT_TYPE_INVALID /** Packet pool*/ #define ODP_POOL_PACKET ODP_EVENT_PACKET /** Buffer pool */ diff --git a/platform/linux-generic/include/odp/plat/event_types.h b/platform/linux-generic/include/odp/plat/event_types.h index 4a0756b..c98d416 100644 --- a/platform/linux-generic/include/odp/plat/event_types.h +++ b/platform/linux-generic/include/odp/plat/event_types.h @@ -30,7 +30,6 @@ typedef odp_buffer_t odp_event_t; #define ODP_EVENT_INVALID ODP_BUFFER_INVALID -#define ODP_EVENT_TYPE_INVALID (-1) #define ODP_EVENT_BUFFER 1 #define ODP_EVENT_PACKET 2 #define ODP_EVENT_TIMEOUT 3