From patchwork Tue Jul 1 18:00:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32923 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6BEB120672 for ; Tue, 1 Jul 2014 18:00:24 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf62126146oag.9 for ; Tue, 01 Jul 2014 11:00:23 -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:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=ysBla+cm5jBps/gZwAR3HcRKhclUkraQPfWeSUB6QBg=; b=WXnpJwxQWkMhKO95ZcdKH10TAmtG9eFcZuN8n2rdz2vetiomL8xa9cNfVf04LngcMk Rsrf2WulGBTbUBunMmMrYqtXTu0CiKyBRVeBpoXJOYzdYOCk3HOT3Uy2U+ui9K9czG69 fXOqsHOytAxzdXZofNMD4kBUkR7FNMWlVqsnRocHI+J1q3NhQOT5zbDSEekTWHgO5RRm 0Bd6MRyckT/R8czLL5BwdZHHM7Tr21lp6mniZVz8YvSftevXRH1IHeL7gsAI8gTGckLy Jpz8JozoVuu8yY3Fb5+dLtoCTz+cYtKc/4nfbd6tKmkoya+7fcx93lTq+gkU2oUI8gg7 6SUQ== X-Gm-Message-State: ALoCoQk4q1Q5p613WtdALBpiGk6BGlBilS3V5/xMJtYKr1zGqFxf5bpx3OUHVF6M7yKPku4oo3Nl X-Received: by 10.50.57.33 with SMTP id f1mr10351531igq.5.1404237623617; Tue, 01 Jul 2014 11:00:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.210 with SMTP id 76ls237523qgp.33.gmail; Tue, 01 Jul 2014 11:00:23 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr45169037vcb.24.1404237623474; Tue, 01 Jul 2014 11:00:23 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id qi1si11739294veb.60.2014.07.01.11.00.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 11:00:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id jx11so10109198veb.33 for ; Tue, 01 Jul 2014 11:00:23 -0700 (PDT) X-Received: by 10.58.209.7 with SMTP id mi7mr75497vec.80.1404237623360; Tue, 01 Jul 2014 11:00:23 -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.221.37.5 with SMTP id tc5csp234269vcb; Tue, 1 Jul 2014 11:00:23 -0700 (PDT) X-Received: by 10.140.23.102 with SMTP id 93mr26597165qgo.2.1404237622903; Tue, 01 Jul 2014 11:00:22 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id u100si22550859qga.8.2014.07.01.11.00.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 01 Jul 2014 11:00:22 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X22Jt-0001ra-Oo; Tue, 01 Jul 2014 17:58:17 +0000 Received: from mail-lb0-f172.google.com ([209.85.217.172]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1X22Jo-0001rB-1C for lng-odp@lists.linaro.org; Tue, 01 Jul 2014 17:58:12 +0000 Received: by mail-lb0-f172.google.com with SMTP id c11so7298611lbj.3 for ; Tue, 01 Jul 2014 11:00:09 -0700 (PDT) X-Received: by 10.112.19.133 with SMTP id f5mr11822394lbe.48.1404237609682; Tue, 01 Jul 2014 11:00:09 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id js1sm508859lab.7.2014.07.01.11.00.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 11:00:09 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 1 Jul 2014 21:00:01 +0300 Message-Id: <1404237602-20051-1-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Topics: patch Subject: [lng-odp] [PATCH 1/2] Keystone2: buffer: Update buffer types 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: taras.kondratiuk@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.128.174 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 Since patch 9b8a4bb "Added timeout buffer type" KS2 build fails, because TIMEOUT and ANY types are not available. Add them just to fix a build. ANY type is not implemented yet. Reported-by: Anders Roxell Signed-off-by: Taras Kondratiuk --- platform/linux-keystone2/include/api/odp_buffer.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/linux-keystone2/include/api/odp_buffer.h b/platform/linux-keystone2/include/api/odp_buffer.h index aa8e740..487791d 100644 --- a/platform/linux-keystone2/include/api/odp_buffer.h +++ b/platform/linux-keystone2/include/api/odp_buffer.h @@ -56,9 +56,11 @@ size_t odp_buffer_size(odp_buffer_t buf); int odp_buffer_type(odp_buffer_t buf); #define ODP_BUFFER_TYPE_INVALID (-1) /**< Buffer type invalid */ -#define ODP_BUFFER_TYPE_RAW 0 /**< Raw buffer */ -#define ODP_BUFFER_TYPE_PACKET 1 /**< Packet buffer */ -#define ODP_BUFFER_TYPE_TIMER 2 /**< Timer buffer */ +#define ODP_BUFFER_TYPE_ANY 0 /**< Buffer that can hold any other + buffer type */ +#define ODP_BUFFER_TYPE_RAW 1 /**< Raw buffer, no additional metadata */ +#define ODP_BUFFER_TYPE_PACKET 2 /**< Packet buffer */ +#define ODP_BUFFER_TYPE_TIMEOUT 3 /**< Timeout buffer */ /** * Tests if buffer is part of a scatter/gather list