From patchwork Tue Aug 18 11:01:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 52495 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 patches.linaro.org (Postfix) with ESMTPS id 8684C22EF8 for ; Tue, 18 Aug 2015 11:03:23 +0000 (UTC) Received: by lbbpd10 with SMTP id pd10sf30878803lbb.3 for ; Tue, 18 Aug 2015 04:03:22 -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=GiqNaYt8gB1Q1jcCTERJpHDwjpIHz+yAUIFz9t/9ZBM=; b=L1u3q+Zo4cRyEgAsJWE1U3L68JlcCPVg6IGN1Zv2a3Ad8e27UiNOsyQnnXRWAa0s2q L6FZWD3+TUO5luBYt7GZEunXKHIW3BoZBtrSDk46o+lPj9zaPdjC7ojhrqAPXwoIYb79 0KYFl7g8phnhzQqT4z8WI7FiohURgtAwfnEhzOVNhsQ5Y/J3HKRfJqM9q59RU5LjoSqv w+U9RxT/2LZv9+1N4IfQ+quG6/TaNFNyzDwufptHzpF0+j1p2+wSMuZSQDz1RKiSSyd7 whL1DKVHquW5eNhSHiUIZyxgIlYENlsjfaK9Z00bIPbarUYETJR/wN1wjyI34OJxNjYj qoIw== X-Gm-Message-State: ALoCoQkHtnImIIctkDmhjUVIbWLRRa/6P+tKUgUTIYaD9EsmuxLwuJvjFUfkmge9evscRamlkNGf X-Received: by 10.112.13.200 with SMTP id j8mr1675695lbc.14.1439895802325; Tue, 18 Aug 2015 04:03:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.40 with SMTP id kz8ls785470lab.24.gmail; Tue, 18 Aug 2015 04:03:22 -0700 (PDT) X-Received: by 10.152.21.103 with SMTP id u7mr5600670lae.49.1439895802174; Tue, 18 Aug 2015 04:03:22 -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 f5si13860209lbd.110.2015.08.18.04.03.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Aug 2015 04:03:22 -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 lbcbn3 with SMTP id bn3so99960678lbc.2 for ; Tue, 18 Aug 2015 04:03:22 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr5729015lbc.112.1439895802080; Tue, 18 Aug 2015 04:03:22 -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.162.200 with SMTP id yc8csp404715lbb; Tue, 18 Aug 2015 04:03:21 -0700 (PDT) X-Received: by 10.55.195.137 with SMTP id r9mr11740018qkl.43.1439895800691; Tue, 18 Aug 2015 04:03:20 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d20si30676409qka.113.2015.08.18.04.03.19; Tue, 18 Aug 2015 04:03:20 -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 B821661F99; Tue, 18 Aug 2015 11:03:19 +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 DFE6B61F6F; Tue, 18 Aug 2015 11:01:56 +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 B6B9E61F67; Tue, 18 Aug 2015 11:01:53 +0000 (UTC) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by lists.linaro.org (Postfix) with ESMTPS id 02BC061F49 for ; Tue, 18 Aug 2015 11:01:48 +0000 (UTC) Received: by wicja10 with SMTP id ja10so91705327wic.1 for ; Tue, 18 Aug 2015 04:01:47 -0700 (PDT) X-Received: by 10.180.74.52 with SMTP id q20mr43394070wiv.94.1439895707210; Tue, 18 Aug 2015 04:01:47 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by smtp.gmail.com with ESMTPSA id e8sm20892047wiz.0.2015.08.18.04.01.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Aug 2015 04:01:46 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 18 Aug 2015 14:01:27 +0300 Message-Id: <1439895698-18597-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439895698-18597-1-git-send-email-maxim.uvarov@linaro.org> References: <1439895698-18597-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv8 01/12] 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.mailfrom=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/queue/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 689ec3f..e14e9d6 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/queue/queue.c b/test/validation/queue/queue.c index 5b2a13a..ff8cd9a 100644 --- a/test/validation/queue/queue.c +++ b/test/validation/queue/queue.c @@ -19,6 +19,7 @@ int queue_suite_init(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;