From patchwork Thu May 21 15:32:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 48857 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 719BD21411 for ; Thu, 21 May 2015 15:32:59 +0000 (UTC) Received: by wgcz3 with SMTP id z3sf21654790wgc.3 for ; Thu, 21 May 2015 08:32:58 -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=Fro84UMESGcMw6HXqaOsDE2GHlU/Iz7GsabkybV4WDE=; b=YNS3gcUdHyG3YS00Z34Me4Q3y+RNuGnZrFYVEzG4Zr3P10/hRHAY8id/KO5GXswxeU ulRGV2XvILrI+T9ViiLKiRni8Ln/EJLX3Zi9r4zAeB1ypuBwY40NBb3z06jVCXAmx8nO 9aZmSw5aeyAEXc7u/M9ZVmNK6QqwSlgWAO86S899USeHkU+iyaRr/QbOZU2OK46Kk2Q1 9+vmjHbdwDLhB1/w7SxuDNU8nE/qQxqiL8A9ophrcyqps4CeHhHvZwa6BP7gk2Wjd/Nu xfJWnf6gAMkDl8sCrwQvz8cKfS21X4lUCtYjT/bWTlOkq3sJbb0+3qn329fiDaFLk7Px R47A== X-Gm-Message-State: ALoCoQnIY5KfZ5p+1VDDa6ua5S0n61y4iAnKQycSC8btoiOy4eIMUs07QMXR/zXoIcYw3MQ9XIpM X-Received: by 10.180.85.129 with SMTP id h1mr3619076wiz.6.1432222378801; Thu, 21 May 2015 08:32:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.40 with SMTP id q8ls321620lag.67.gmail; Thu, 21 May 2015 08:32:58 -0700 (PDT) X-Received: by 10.152.234.139 with SMTP id ue11mr2798504lac.28.1432222378636; Thu, 21 May 2015 08:32:58 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id o2si13492411laj.20.2015.05.21.08.32.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 08:32:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbuc2 with SMTP id uc2so20916159lbb.2 for ; Thu, 21 May 2015 08:32:58 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr2850198lai.32.1432222378527; Thu, 21 May 2015 08:32:58 -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 hn6csp676664lbb; Thu, 21 May 2015 08:32:57 -0700 (PDT) X-Received: by 10.55.42.130 with SMTP id q2mr3494575qkq.20.1432222376843; Thu, 21 May 2015 08:32:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id fm10si442017qcb.45.2015.05.21.08.32.55; Thu, 21 May 2015 08:32:56 -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 E508861E5A; Thu, 21 May 2015 15:32:54 +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_H2, 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 19D3061CDF; Thu, 21 May 2015 15:32:49 +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 02B9661D20; Thu, 21 May 2015 15:32:25 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by lists.linaro.org (Postfix) with ESMTPS id BBEF361D02 for ; Thu, 21 May 2015 15:32:23 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2so20875843lbb.3 for ; Thu, 21 May 2015 08:32:22 -0700 (PDT) X-Received: by 10.152.164.233 with SMTP id yt9mr2849945lab.58.1432222342682; Thu, 21 May 2015 08:32:22 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-163-142.pppoe.mtu-net.ru. [91.76.163.142]) by mx.google.com with ESMTPSA id kb5sm5385410lbc.16.2015.05.21.08.32.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 May 2015 08:32:21 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 21 May 2015 18:32:08 +0300 Message-Id: <1432222332-21289-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432222332-21289-1-git-send-email-maxim.uvarov@linaro.org> References: <1432222332-21289-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv6 1/5] linux-generic: zero params for pool create 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: maxim.uvarov@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.217.180 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 Adding more params to pool create breaks original work. Make sure that not set params are zero. Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_schedule.c | 1 + test/validation/odp_queue.c | 1 + 2 files changed, 2 insertions(+) diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 7fe42d7..a63f97a 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -123,6 +123,7 @@ int odp_schedule_init_global(void) memset(sched, 0, sizeof(sched_t)); + memset(¶ms, 0, sizeof(params)); params.buf.size = sizeof(sched_cmd_t); params.buf.align = 0; params.buf.num = NUM_SCHED_CMD; diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c index 5123939..e541658 100644 --- a/test/validation/odp_queue.c +++ b/test/validation/odp_queue.c @@ -18,6 +18,7 @@ static int init_queue_suite(void) { odp_pool_param_t params; + memset(¶ms, 0, sizeof(params)); params.buf.size = 0; params.buf.align = ODP_CACHE_LINE_SIZE; params.buf.num = 1024 * 10;