From patchwork Wed Jul 8 21:20:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 50913 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CB212213FD for ; Wed, 8 Jul 2015 21:20:52 +0000 (UTC) Received: by lbko2 with SMTP id o2sf5006147lbk.0 for ; Wed, 08 Jul 2015 14:20:51 -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: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=wMPhTG5+dfpCsP+p60oeStoFIcU5oPN3vmSPo192svc=; b=IF1jhQOAKrZLGKIDsGnvdVA/Z21/gaLRsxBcXfq5H3w4u9QzIGRPPGCXdR1ql7qbkS Z2XlQ0jlArIdM3P8DKkTzZuueKedVS+ObCfwKST1Wuy0pJGke/wZcAjcrg9fzJ9FicWY 4O8VGGcGY3xzpYc5kt2LkyeQy0VHmVSIXkixm0hZubz44pbf3w2og6swr9dOfW3RbkM3 ZEElxh8gOHpv6PfyvwdFACq8sGI9CUc2+Vsh+53EvmSdNI4E2uWxbm08bFzEfOAgsMyo dLKDN7TLpB221HyhgeTKdOx0wF8pgmozvh8aUr2BQXTscWZCDkZgKbCudtdSBmniFKgu XVAA== X-Gm-Message-State: ALoCoQlzrWBOKZnjDBynhwcpWifIvDI3o8zL97N+964drP0ukwBZRqCuF5sDnNL+TomEeax+txDS X-Received: by 10.180.87.201 with SMTP id ba9mr21779278wib.3.1436390451768; Wed, 08 Jul 2015 14:20:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.131 with SMTP id w3ls1025216lal.81.gmail; Wed, 08 Jul 2015 14:20:51 -0700 (PDT) X-Received: by 10.152.20.106 with SMTP id m10mr11778500lae.7.1436390451600; Wed, 08 Jul 2015 14:20:51 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id i18si2986379lbo.102.2015.07.08.14.20.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 14:20:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbnk3 with SMTP id k3so63973716lbn.1 for ; Wed, 08 Jul 2015 14:20:51 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr11422670lay.72.1436390451433; Wed, 08 Jul 2015 14:20:51 -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 hn6csp223640lbb; Wed, 8 Jul 2015 14:20:50 -0700 (PDT) X-Received: by 10.55.15.232 with SMTP id 101mr19546021qkp.69.1436390450223; Wed, 08 Jul 2015 14:20:50 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k77si4266450qhc.70.2015.07.08.14.20.48; Wed, 08 Jul 2015 14:20:50 -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 CD1F661F95; Wed, 8 Jul 2015 21:20:48 +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_H2, 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 E619D6182C; Wed, 8 Jul 2015 21:20:43 +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 2CDDE6181E; Wed, 8 Jul 2015 21:20:42 +0000 (UTC) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by lists.linaro.org (Postfix) with ESMTPS id 69D396181E for ; Wed, 8 Jul 2015 21:20:41 +0000 (UTC) Received: by qkbp125 with SMTP id p125so172968143qkb.2 for ; Wed, 08 Jul 2015 14:20:41 -0700 (PDT) X-Received: by 10.140.86.71 with SMTP id o65mr19362061qgd.98.1436390441224; Wed, 08 Jul 2015 14:20:41 -0700 (PDT) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id b66sm1908261qkh.36.2015.07.08.14.20.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jul 2015 14:20:40 -0700 (PDT) From: Mike Holmes To: christophe.milard@linaro.org, lng-odp@lists.linaro.org Date: Wed, 8 Jul 2015 17:20:33 -0400 Message-Id: <1436390434-23769-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 1/2] api: thread: thrmask use uint_32_t 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: mike.holmes@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.178 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 The thrmask apis do not return an error, use unsigned Signed-off-by: Mike Holmes --- include/odp/api/thrmask.h | 4 ++-- platform/linux-generic/odp_thread.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/odp/api/thrmask.h b/include/odp/api/thrmask.h index ebc31f2..e067219 100644 --- a/include/odp/api/thrmask.h +++ b/include/odp/api/thrmask.h @@ -204,7 +204,7 @@ int odp_thrmask_next(const odp_thrmask_t *mask, int thr); * * @return Number of threads in the mask */ -int odp_thrmask_worker(odp_thrmask_t *mask); +uint32_t odp_thrmask_worker(odp_thrmask_t *mask); /** * Control thread mask @@ -216,7 +216,7 @@ int odp_thrmask_worker(odp_thrmask_t *mask); * * @return Number of threads in the mask */ -int odp_thrmask_control(odp_thrmask_t *mask); +uint32_t odp_thrmask_control(odp_thrmask_t *mask); /** * @} diff --git a/platform/linux-generic/odp_thread.c b/platform/linux-generic/odp_thread.c index 9905c78..d70a03b 100644 --- a/platform/linux-generic/odp_thread.c +++ b/platform/linux-generic/odp_thread.c @@ -201,13 +201,13 @@ int odp_cpu_id(void) return this_thread->cpu; } -int odp_thrmask_worker(odp_thrmask_t *mask) +uint32_t odp_thrmask_worker(odp_thrmask_t *mask) { odp_thrmask_copy(mask, &thread_globals->worker); return thread_globals->num_worker; } -int odp_thrmask_control(odp_thrmask_t *mask) +uint32_t odp_thrmask_control(odp_thrmask_t *mask) { odp_thrmask_copy(mask, &thread_globals->control); return thread_globals->num_control;