From patchwork Thu Jul 16 16:25:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 51186 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C19C522A8A for ; Thu, 16 Jul 2015 16:27:34 +0000 (UTC) Received: by lbbvz8 with SMTP id vz8sf19548716lbb.2 for ; Thu, 16 Jul 2015 09:27:33 -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=Mdaevbe6rgl/yP/hHaVWleAd+1JiMD1sSjSsJGU2+/TES9NYCNvFw1LmTi4Q0gTRSh +ewzqj4FF5aSNevKSVJuAKHJtcw7/u5kAoOSCR//pWwu90rt3/YidfWqE97i4vb9p22S hdrI5Y1vWYF09wsrvTWzkh5P/C2SO4pMfRFtttpm0TaYfsfEbzhjNAbEDBwUyodKRctL yEqQfyPke7I50cdyjnCLficbuAEJrTY0DeFPlfqQX6irxsflWkMjB5khLynJjidVTXJu cCseuMAaXtHD/Pg8D2m6BQjOGh+wLQYK4PKWHI6/Qs6X8VtwFU4R1IGKtPB95Vbgo6E+ 2N9w== X-Gm-Message-State: ALoCoQn2+oHK+bxn35L9s0wmgXM5iax3Ak9Jby3xwcK2z46Xq+uCuFNXVwYliXUbtKk3rT4z68EC X-Received: by 10.194.175.36 with SMTP id bx4mr5250719wjc.1.1437064053761; Thu, 16 Jul 2015 09:27:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.105 with SMTP id x9ls403831laj.11.gmail; Thu, 16 Jul 2015 09:27:33 -0700 (PDT) X-Received: by 10.112.168.165 with SMTP id zx5mr9918946lbb.111.1437064053597; Thu, 16 Jul 2015 09:27:33 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id re5si7348317lbb.150.2015.07.16.09.27.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 09:27:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbyj8 with SMTP id yj8so46934546lbb.0 for ; Thu, 16 Jul 2015 09:27:33 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr10120284lbp.88.1437064053451; Thu, 16 Jul 2015 09:27:33 -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 hn6csp362656lbb; Thu, 16 Jul 2015 09:27:32 -0700 (PDT) X-Received: by 10.140.236.22 with SMTP id h22mr11864229qhc.92.1437064052730; Thu, 16 Jul 2015 09:27:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h137si10146661qhc.38.2015.07.16.09.27.32; Thu, 16 Jul 2015 09:27:32 -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 E8818620ED; Thu, 16 Jul 2015 16:27:31 +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 25960620B9; Thu, 16 Jul 2015 16:26:18 +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 3AF74620B1; Thu, 16 Jul 2015 16:26:13 +0000 (UTC) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by lists.linaro.org (Postfix) with ESMTPS id 6F21761DEA for ; Thu, 16 Jul 2015 16:26:10 +0000 (UTC) Received: by widjy10 with SMTP id jy10so20433173wid.1 for ; Thu, 16 Jul 2015 09:26:09 -0700 (PDT) X-Received: by 10.180.102.74 with SMTP id fm10mr6824219wib.25.1437063969656; Thu, 16 Jul 2015 09:26:09 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id be9sm13889153wjb.26.2015.07.16.09.26.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Jul 2015 09:26:09 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Thu, 16 Jul 2015 17:25:43 +0100 Message-Id: <1437063949-24456-4-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1437063949-24456-1-git-send-email-stuart.haslam@linaro.org> References: <1437063949-24456-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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.217.172 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 --- 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;