From patchwork Fri May 8 09:57:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 48163 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E04C21550 for ; Fri, 8 May 2015 09:58:43 +0000 (UTC) Received: by wizk4 with SMTP id k4sf5705368wiz.2 for ; Fri, 08 May 2015 02:58:42 -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=LQiK26936vJ0NfAXYW/9H3X1yAdJW+6O4O3qGdewiRdxGZf2lJpaHqjDUBGWvNZUC5 w02gjxvajtlBqJgt0wszQmtAhLiVMCj1HU9SMrW9akR+wdOpuxov/jRC83bkOye27KIq 4BGmNeh0MZ2eOesZCL7FneyuDinNoAqFpUZN0XZFHLEziwyt/5gbJa+jvDnvE9v9b9Qj o1vB7uRP6rzE3dOSJa2InJRi0VNqNBJlv+iwzABQ1PMpzy1a/uTZMiksYHxnHBH+ADJ+ +UL4HsFCxdg5rXLxS1mG1n8TKBevDYyy9Ot4T51+k8df2M76g7QvopaY748/M7LsqLbi dDHA== X-Gm-Message-State: ALoCoQlj+Op3H6BZXMwlew4JUA4VHubNHmeVwy5qc65gwQHkkBXFOpVHcstcjiBe6wPX8EkfHfWZ X-Received: by 10.194.179.42 with SMTP id dd10mr1635736wjc.7.1431079122504; Fri, 08 May 2015 02:58:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.244.162 with SMTP id xh2ls342879lac.108.gmail; Fri, 08 May 2015 02:58:42 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr2217008lak.117.1431079122267; Fri, 08 May 2015 02:58:42 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id wz10si2975839lbb.138.2015.05.08.02.58.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 May 2015 02:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbcga7 with SMTP id ga7so49689847lbc.1 for ; Fri, 08 May 2015 02:58:42 -0700 (PDT) X-Received: by 10.113.10.134 with SMTP id ea6mr2247691lbd.29.1431079122150; Fri, 08 May 2015 02:58:42 -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 hn6csp349136lbb; Fri, 8 May 2015 02:58:41 -0700 (PDT) X-Received: by 10.229.84.70 with SMTP id i6mr3937276qcl.20.1431079120614; Fri, 08 May 2015 02:58:40 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k39si4820552qgd.40.2015.05.08.02.58.39; Fri, 08 May 2015 02:58:40 -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 C633C61DB7; Fri, 8 May 2015 09:58:39 +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=-1.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, 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 46C5461D9C; Fri, 8 May 2015 09:58:10 +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 87F0461D9A; Fri, 8 May 2015 09:57:58 +0000 (UTC) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id AEDDE61D91 for ; Fri, 8 May 2015 09:57:57 +0000 (UTC) Received: by laat2 with SMTP id t2so49101038laa.1 for ; Fri, 08 May 2015 02:57:56 -0700 (PDT) X-Received: by 10.153.7.104 with SMTP id db8mr1848864lad.124.1431079076276; Fri, 08 May 2015 02:57:56 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-165-85.pppoe.mtu-net.ru. [91.76.165.85]) by mx.google.com with ESMTPSA id m1sm1045395lbg.36.2015.05.08.02.57.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 May 2015 02:57:55 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 8 May 2015 12:57:46 +0300 Message-Id: <1431079069-9702-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431079069-9702-1-git-send-email-maxim.uvarov@linaro.org> References: <1431079069-9702-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/4] 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.169 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;