From patchwork Mon Feb 2 16:00:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 44158 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 06A812034D for ; Mon, 2 Feb 2015 16:01:07 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id h11sf20320663wiw.1 for ; Mon, 02 Feb 2015 08:01:06 -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=FaUhFNo9U3eb1zIy3LuAVfz5tdtdHKdQjBoMWKGq67s=; b=WpJ08vLJM5Ts8nxLP+twrYOl/TyUuq4EBBqaZOc1v9CkEZtXh9V3PWsLBLz3MV6qiW bBTUgxPneaufDJ7XquAhEB8wltve3HRGzmW+PTykHdEGO+XDPiaIySHTHm10U4hy81qs 5CXYkWwzDncr8wvA6YAWYqnRUvMIpGNVLa9MN4lCbI0Y0LAFdz681YcrIO9+uiG8ja2k FYc5nmNK2wzv/UJffQIKGKxQt64/CVhZtBAeFnbqgHvjmYtHev0KWgry/m3mT+CosXXh uvO59LOKm6/Jqq9a1NjmZBdG+MjmJ15bEuSBScMWKBkonzbGoDZwhIid/qf+c+EdkpGW bSTw== X-Gm-Message-State: ALoCoQlVMQ+PzV0W4bChX6cHwUrskB2Yvobp8g6mm+2EWCnqQgrlIW30T6vfiQNnBDdUj8lnQFi3 X-Received: by 10.180.76.44 with SMTP id h12mr1318770wiw.2.1422892866208; Mon, 02 Feb 2015 08:01:06 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.49 with SMTP id o17ls665469laa.24.gmail; Mon, 02 Feb 2015 08:01:06 -0800 (PST) X-Received: by 10.152.219.161 with SMTP id pp1mr20514322lac.30.1422892866010; Mon, 02 Feb 2015 08:01:06 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id h2si17239503lbv.95.2015.02.02.08.01.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 08:01:05 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id hs14so42199143lab.9 for ; Mon, 02 Feb 2015 08:01:05 -0800 (PST) X-Received: by 10.152.5.226 with SMTP id v2mr20243252lav.34.1422892865886; Mon, 02 Feb 2015 08:01:05 -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 h5csp1381888lbj; Mon, 2 Feb 2015 08:01:05 -0800 (PST) X-Received: by 10.236.2.169 with SMTP id 29mr4192409yhf.71.1422892864614; Mon, 02 Feb 2015 08:01:04 -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 e129si4122465ykc.15.2015.02.02.08.01.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 08:01:04 -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 1YIJQq-0002Sz-O3; Mon, 02 Feb 2015 16:01:00 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YIJQk-0002PB-S8 for lng-odp@lists.linaro.org; Mon, 02 Feb 2015 16:00:55 +0000 Received: by mail-la0-f53.google.com with SMTP id gq15so42324229lab.12 for ; Mon, 02 Feb 2015 08:00:49 -0800 (PST) X-Received: by 10.112.125.4 with SMTP id mm4mr20067498lbb.86.1422892849232; Mon, 02 Feb 2015 08:00:49 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id j9sm4093848lbp.7.2015.02.02.08.00.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Feb 2015 08:00:48 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Mon, 2 Feb 2015 17:00:43 +0100 Message-Id: <1422892843-7670-1-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] 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.50 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) 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..ce97bdc 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 + * Return type of event * * @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