From patchwork Tue Jul 21 13:32:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 51312 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id A1CAF20323 for ; Tue, 21 Jul 2015 13:34:21 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf12810675wic.1 for ; Tue, 21 Jul 2015 06:34:21 -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=O+WZ/loFcjlFYXCO3HGdjKPVq9anGvTg7H1WRSkA1+w=; b=NpD3dumIotHHZacPxwj48Q+ZEjb0N/CJybAgyH6ByHQlimaS3+Ea49cUwcBPIAiwuD 6/iAqCYgfBVGh8P6G0Zj0bn3Ji18kJlB5CcUAqvY7hEJ8NXuJe9PuHxYlNaOXH62U+K1 cAyinDjBYDM/Yvo3G0WfVFSgn1rjYUO35+4+OU211ZRTZLPhmXkslYkklCZo12q0esPW hJc7ja2bD0SHXZ4unIV3V4xA1pDnu8M1bB48drFa/PIuhtv3zo67NqlXP/LrZ35RVhJE mKBStcJjyGBIDUN2IBmrx1HXF9CJiz2SoLK8PvBDYSxWIFw4q3NkiAUr2m6PLwpizlsz RSvA== X-Gm-Message-State: ALoCoQnbyQJN/X2JEi9GrDB8YYQJOBKfCU/JkAL0Efu4aUUmkltTZOpJmCWOdvIqVwyyCduELk2w X-Received: by 10.152.43.131 with SMTP id w3mr14756322lal.0.1437485660883; Tue, 21 Jul 2015 06:34:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.47 with SMTP id t15ls840660lal.77.gmail; Tue, 21 Jul 2015 06:34:20 -0700 (PDT) X-Received: by 10.152.164.193 with SMTP id ys1mr33145285lab.65.1437485660605; Tue, 21 Jul 2015 06:34:20 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id qo3si20791402lbb.122.2015.07.21.06.34.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 06:34:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lahe2 with SMTP id e2so55416316lah.1 for ; Tue, 21 Jul 2015 06:34:20 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr33087718laj.19.1437485660394; Tue, 21 Jul 2015 06:34:20 -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.7.198 with SMTP id l6csp1454274lba; Tue, 21 Jul 2015 06:34:19 -0700 (PDT) X-Received: by 10.202.189.212 with SMTP id n203mr29848181oif.24.1437485658798; Tue, 21 Jul 2015 06:34:18 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id qf9si20402929icb.62.2015.07.21.06.34.17; Tue, 21 Jul 2015 06:34:18 -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 6833D61E97; Tue, 21 Jul 2015 13:34:17 +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 AE74661ECF; Tue, 21 Jul 2015 13:33:00 +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 B1CA061E90; Tue, 21 Jul 2015 13:32:49 +0000 (UTC) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by lists.linaro.org (Postfix) with ESMTPS id 7F38E61E72 for ; Tue, 21 Jul 2015 13:32:48 +0000 (UTC) Received: by wgbcc4 with SMTP id cc4so63498044wgb.3 for ; Tue, 21 Jul 2015 06:32:47 -0700 (PDT) X-Received: by 10.180.107.138 with SMTP id hc10mr31911824wib.2.1437485567587; Tue, 21 Jul 2015 06:32:47 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id jy6sm37121913wjc.4.2015.07.21.06.32.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jul 2015 06:32:46 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Tue, 21 Jul 2015 14:32:14 +0100 Message-Id: <1437485540-4862-4-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1437485540-4862-1-git-send-email-stuart.haslam@linaro.org> References: <1437485540-4862-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 3/9] linux-generic: cpumask: zero mask before setting 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: stuart.haslam@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.52 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 odp_cpumask_def_control() was neglecting to zero out the provided mask. Signed-off-by: Stuart Haslam Reviewed-by: Christophe Milard --- platform/linux-generic/odp_cpumask.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux-generic/odp_cpumask.c b/platform/linux-generic/odp_cpumask.c index 1ea7dcb..c28153b 100644 --- a/platform/linux-generic/odp_cpumask.c +++ b/platform/linux-generic/odp_cpumask.c @@ -238,6 +238,7 @@ int odp_cpumask_def_worker(odp_cpumask_t *mask, int num) int odp_cpumask_def_control(odp_cpumask_t *mask, int num ODP_UNUSED) { + odp_cpumask_zero(mask); /* By default all control threads on CPU 0 */ odp_cpumask_set(mask, 0); return 1;