From patchwork Mon Jun 1 10:41:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 49289 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 D5E6521580 for ; Mon, 1 Jun 2015 10:42:31 +0000 (UTC) Received: by wifx6 with SMTP id x6sf21712575wif.1 for ; Mon, 01 Jun 2015 03:42:31 -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=XmnYEBe86X/yyp7Bzn09YA1zU4xt79kC/xEAEFr245R1XnkQfUeEHBreOqjmkeq3sY YOpiYhTHLvjT2hSixpnKR7gmYpyufG2WCqIGAVot897VbGiYLdH+2xs69R7O60hgwtYO 10n5rGvvNqShy2Yvy8fwYFoqpAuMjWLAYWug+iQ9rG10PWlNIdKUY0lZ0HUJIRRZpca7 dn6lHc9WcIUe2w78zb3qG/pRggn82n7HnQ76go086az2GsbfstYN6zrWqBebA0b9N9+w 81tDZJr1QMV+KCsUkNJLVZfliUcrjEptyok5PyiYuVAwE8vEHORjBird+nVO/t0lQHdn zu3Q== X-Gm-Message-State: ALoCoQlUXCS/p7z7xPi2nHsqsla3v+J7PF8X1+gd7IGk3ya3oGQQ9I13e5QRdN5qTdFHuru2pewF X-Received: by 10.180.221.203 with SMTP id qg11mr7497368wic.7.1433155351228; Mon, 01 Jun 2015 03:42:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.99 with SMTP id l3ls304772lam.4.gmail; Mon, 01 Jun 2015 03:42:31 -0700 (PDT) X-Received: by 10.112.162.38 with SMTP id xx6mr11189663lbb.110.1433155350999; Mon, 01 Jun 2015 03:42:30 -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 t8si11955918lae.163.2015.06.01.03.42.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 03:42:30 -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 labpy14 with SMTP id py14so86282200lab.0 for ; Mon, 01 Jun 2015 03:42:30 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr10932909lac.41.1433155350903; Mon, 01 Jun 2015 03:42:30 -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 hn6csp2216420lbb; Mon, 1 Jun 2015 03:42:30 -0700 (PDT) X-Received: by 10.140.18.141 with SMTP id 13mr22592067qgf.96.1433155349520; Mon, 01 Jun 2015 03:42:29 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o77si12671220qko.82.2015.06.01.03.42.28; Mon, 01 Jun 2015 03:42:29 -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 457E161D15; Mon, 1 Jun 2015 10:42:28 +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 EEBD561D1B; Mon, 1 Jun 2015 10:41:58 +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 39B3861D0E; Mon, 1 Jun 2015 10:41:56 +0000 (UTC) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by lists.linaro.org (Postfix) with ESMTPS id 51F6761CE5 for ; Mon, 1 Jun 2015 10:41:55 +0000 (UTC) Received: by wizo1 with SMTP id o1so99166380wiz.1 for ; Mon, 01 Jun 2015 03:41:54 -0700 (PDT) X-Received: by 10.194.134.9 with SMTP id pg9mr40904289wjb.5.1433155314541; Mon, 01 Jun 2015 03:41:54 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by mx.google.com with ESMTPSA id fb3sm16014528wib.21.2015.06.01.03.41.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Jun 2015 03:41:53 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 1 Jun 2015 13:41:40 +0300 Message-Id: <1433155304-24149-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433155304-24149-1-git-send-email-maxim.uvarov@linaro.org> References: <1433155304-24149-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv7 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.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 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;