From patchwork Thu Apr 23 17:46:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 47468 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 79F6120553 for ; Thu, 23 Apr 2015 17:47:53 +0000 (UTC) Received: by lbcne10 with SMTP id ne10sf6069043lbc.1 for ; Thu, 23 Apr 2015 10:47:52 -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=Gtx83K8T6ZvfNR8d84Uk63z0CduE+axtYHH57l9D7lY=; b=dNSs0Q0ZcCPt+OEmnjTa203FF+lUwEcQTG674eqwv7FPI5f6GBRLadWEzJCk971e89 tuFRASZzO4uue+KeBaQCHML82+eTyux3/ckct1chLmfTBM9gj3v0qPDMzAtTyHYZ7IJ7 Q8lOtlDKO1xd8GB4k8/fjC84Fclyj4oxmq5tQ592J9+1s7KC5eYNYShg3byuygzCDi5J jxW9IeYQXazbF9WO++NbUX4Z1mmP4jIARB5Sh0wsk0bsVLZSLK3Wzjct01o9WYIGuQrp rDpyr+o6ffT3Vw6wUcTCKQ3ZyCdaxkW+5wuhb0sLTa/pl2Cy210yFoqeDUD9mvwHQp12 N0EQ== X-Gm-Message-State: ALoCoQmLJkMGtpao5cgrqR0cniD9k5xvX0Y/kfL0urAzRoxuJ0rEZ4QRmRQUyQsm7gUy679kACwC X-Received: by 10.112.93.203 with SMTP id cw11mr1967934lbb.0.1429811272101; Thu, 23 Apr 2015 10:47:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.34 with SMTP id n2ls373599laj.15.gmail; Thu, 23 Apr 2015 10:47:51 -0700 (PDT) X-Received: by 10.112.56.42 with SMTP id x10mr3452144lbp.123.1429811271959; Thu, 23 Apr 2015 10:47:51 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id ev1si6458167lbc.0.2015.04.23.10.47.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 10:47:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbqq2 with SMTP id qq2so18899119lbb.3 for ; Thu, 23 Apr 2015 10:47:51 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr3385954lac.41.1429811271548; Thu, 23 Apr 2015 10:47:51 -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.67.65 with SMTP id l1csp717996lbt; Thu, 23 Apr 2015 10:47:51 -0700 (PDT) X-Received: by 10.55.49.147 with SMTP id x141mr7539560qkx.23.1429811270363; Thu, 23 Apr 2015 10:47:50 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w42si8737633qge.73.2015.04.23.10.47.49; Thu, 23 Apr 2015 10:47:50 -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 1563161EAE; Thu, 23 Apr 2015 17:47:49 +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=ham autolearn_force=no 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 0D97E61FDD; Thu, 23 Apr 2015 17:47:26 +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 2271C61ECF; Thu, 23 Apr 2015 17:47:20 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id 720B761DB5 for ; Thu, 23 Apr 2015 17:47:19 +0000 (UTC) Received: by lbcga7 with SMTP id ga7so18951827lbc.1 for ; Thu, 23 Apr 2015 10:47:18 -0700 (PDT) X-Received: by 10.112.200.230 with SMTP id jv6mr3459885lbc.21.1429811238277; Thu, 23 Apr 2015 10:47:18 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-163-193.pppoe.mtu-net.ru. [91.76.163.193]) by mx.google.com with ESMTPSA id k2sm2010574lag.9.2015.04.23.10.47.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Apr 2015 10:47:17 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 23 Apr 2015 20:46:59 +0300 Message-Id: <1429811225-10239-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429811225-10239-1-git-send-email-maxim.uvarov@linaro.org> References: <1429811225-10239-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 1/7] 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.171 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 5d47399..4354ce1 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;