From patchwork Wed Jul 1 01:39:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50494 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 8B8F6229DF for ; Wed, 1 Jul 2015 01:41:05 +0000 (UTC) Received: by wian6 with SMTP id n6sf10885489wia.2 for ; Tue, 30 Jun 2015 18:41:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references: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=Ox/bdRNDffz+F5s5ZMhSbA08HOonaaCU968gsRWEapw=; b=lcBqMVT9s0+7K1+eaX4+KkrfX1gYAXNspH9i4RiNJf1M+jammCt8EOXPg5vtt2pU/i s9nPxAv5pBg3fnWJRZ7bTxufJUqS6cKICxM76zXyol2iuK8uuLEBlHWg1tjtfMX8BTT6 D1k9yC/9pc6JKhaT1HSWyjGg0fJWzr5A6xXrqnHnsm9bjwLIB/yqTFMR4G2JJL5+daTx MvK/ZCGGxYTRhMYKPwVg5dDyRbWG/dmsxrF3RgnGLBkq/+mCb8sxkFtEb5L7yJ84uRDl ws7pYz6JWhlz8aQ53QtLdzdF7f+28vPmMvxGLm9rpUCSmSmr/Dt1frQUszPpjUOx8wbu t1Ow== X-Gm-Message-State: ALoCoQmtMP9nnu9C+QiFJ3kIyS5AGnp5GRBlOitxnB82rEEP0QjtojCHFcZ8DD+waVnObttrKXfY X-Received: by 10.194.175.36 with SMTP id bx4mr15686325wjc.1.1435714865290; Tue, 30 Jun 2015 18:41:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.230 with SMTP id y6ls128041lae.20.gmail; Tue, 30 Jun 2015 18:41:05 -0700 (PDT) X-Received: by 10.152.2.2 with SMTP id 2mr23009382laq.58.1435714865125; Tue, 30 Jun 2015 18:41:05 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id t1si254532lbk.72.2015.06.30.18.41.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 18:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagc2 with SMTP id c2so31161033lag.3 for ; Tue, 30 Jun 2015 18:41:04 -0700 (PDT) X-Received: by 10.112.42.50 with SMTP id k18mr20700456lbl.76.1435714864577; Tue, 30 Jun 2015 18:41:04 -0700 (PDT) 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.108.230 with SMTP id hn6csp269966lbb; Tue, 30 Jun 2015 18:41:03 -0700 (PDT) X-Received: by 10.140.40.168 with SMTP id x37mr30252436qgx.24.1435714863245; Tue, 30 Jun 2015 18:41:03 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 5si404640qks.82.2015.06.30.18.41.02; Tue, 30 Jun 2015 18:41:03 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 0ED0061EB1; Wed, 1 Jul 2015 01:41:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 98F2E61F1C; Wed, 1 Jul 2015 01:39:44 +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 7549161EB1; Wed, 1 Jul 2015 01:39:33 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by lists.linaro.org (Postfix) with ESMTPS id 6445D61D5A for ; Wed, 1 Jul 2015 01:39:32 +0000 (UTC) Received: by oigx81 with SMTP id x81so21389544oig.1 for ; Tue, 30 Jun 2015 18:39:32 -0700 (PDT) X-Received: by 10.202.56.134 with SMTP id f128mr21554462oia.126.1435714772400; Tue, 30 Jun 2015 18:39:32 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id p184sm226149oig.10.2015.06.30.18.39.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jun 2015 18:39:31 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 30 Jun 2015 20:39:15 -0500 Message-Id: <1435714761-23951-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> References: <1435714761-23951-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 04/10] linux-generic: buffer: use odp_event_type_t X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@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.45 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 Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp_buffer_inlines.h | 2 +- platform/linux-generic/include/odp_buffer_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/include/odp_buffer_inlines.h b/platform/linux-generic/include/odp_buffer_inlines.h index 91e56bd..fe59a32 100644 --- a/platform/linux-generic/include/odp_buffer_inlines.h +++ b/platform/linux-generic/include/odp_buffer_inlines.h @@ -188,7 +188,7 @@ static inline void *segment_map(odp_buffer_hdr_t *buf, return (void *)seg_addr; } -static inline int _odp_buffer_event_type(odp_buffer_t buf) +static inline odp_event_type_t _odp_buffer_event_type(odp_buffer_t buf) { return odp_buf_to_hdr(buf)->event_type; } diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h index a3632fe..3e8b91e 100644 --- a/platform/linux-generic/include/odp_buffer_internal.h +++ b/platform/linux-generic/include/odp_buffer_internal.h @@ -117,7 +117,7 @@ typedef struct odp_buffer_hdr_t { }; } flags; int type; /* buffer type */ - int event_type; /* for reuse as event */ + odp_event_type_t event_type; /* for reuse as event */ uint32_t size; /* max data size */ odp_atomic_u32_t ref_count; /* reference count */ odp_pool_t pool_hdl; /* buffer pool handle */