From patchwork Thu Feb 5 16:20:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 44467 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 70BB521521 for ; Thu, 5 Feb 2015 16:20:27 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id u14sf1396939lbd.3 for ; Thu, 05 Feb 2015 08:20:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state: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=ChmTlOLM6xs/4BjUwjx/3anqFaH0SBXRJxu8KXAVWhA=; b=ENdoQGc5Colxrj972S8Gx9LVhYgow2HG6PB+QS9BHDm3GMno2mBIszFmWryXpOEKNa H++aTThgbh8uzpiZctjYVld0aG0Rvkq6otar66lnza1EX+ZkV+/Fm/qZxw94FQFSvT+4 9z+Al+WyU9h7dMDcyp3RnE2Wto2XkLIzjT6gLE+BnlriRDBmcB+fhrH4riKBUtl22Qbo 9bNwkkWUU32clF6N0gXp6+lLZU90D90grWciCQingRHjZ9vxE3yZPEIvPYJq0OQp84lw NpgH+ExG8lg2zlcjX1J1ps6ieMYOhbUyr86vz8Xy4s3snnlQspgBFGs5KYmYKqWEWXG0 zZ8A== X-Gm-Message-State: ALoCoQlFgy625XOJyGnKksf0BosfQu7bJWVyJZ/5xZT7g29d5yssGI6eM4pYACco2bguqIBONC/M X-Received: by 10.112.45.197 with SMTP id p5mr236569lbm.18.1423153226236; Thu, 05 Feb 2015 08:20:26 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.9 with SMTP id p9ls171888lag.86.gmail; Thu, 05 Feb 2015 08:20:26 -0800 (PST) X-Received: by 10.112.161.34 with SMTP id xp2mr4466880lbb.73.1423153226076; Thu, 05 Feb 2015 08:20:26 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id s1si364095lbf.154.2015.02.05.08.20.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 08:20:26 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id l4so8901507lbv.13 for ; Thu, 05 Feb 2015 08:20:26 -0800 (PST) X-Received: by 10.152.43.193 with SMTP id y1mr1256477lal.35.1423153225968; Thu, 05 Feb 2015 08:20:25 -0800 (PST) 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.35.133 with SMTP id h5csp1244972lbj; Thu, 5 Feb 2015 08:20:25 -0800 (PST) X-Received: by 10.224.114.209 with SMTP id f17mr9976426qaq.68.1423153224733; Thu, 05 Feb 2015 08:20:24 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id e3si6486065qaf.113.2015.02.05.08.20.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Feb 2015 08:20:24 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YJPAB-0000sz-MG; Thu, 05 Feb 2015 16:20:19 +0000 Received: from mail-lb0-f174.google.com ([209.85.217.174]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YJPA5-0000sr-U3 for lng-odp@lists.linaro.org; Thu, 05 Feb 2015 16:20:14 +0000 Received: by mail-lb0-f174.google.com with SMTP id f15so8932584lbj.5 for ; Thu, 05 Feb 2015 08:20:08 -0800 (PST) X-Received: by 10.152.5.193 with SMTP id u1mr4521735lau.96.1423153207717; Thu, 05 Feb 2015 08:20:07 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id v5sm1051684lby.9.2015.02.05.08.20.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Feb 2015 08:20:06 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Thu, 5 Feb 2015 17:20:00 +0100 Message-Id: <1423153200-24217-1-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] api: odp_schedule.h: use int to match return type X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ola.liljedahl@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.182 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 Use (signed) int for parameter that should match return type of function. Signed-off-by: Ola Liljedahl Reviewed-by: Bill Fischofer --- (This document/code contribution attached is provided under the terms of agreement LES-LTM-21309) include/odp/api/schedule.h | 2 +- platform/linux-generic/odp_schedule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/odp/api/schedule.h b/include/odp/api/schedule.h index 3019b84..226dc9b 100644 --- a/include/odp/api/schedule.h +++ b/include/odp/api/schedule.h @@ -87,7 +87,7 @@ odp_event_t odp_schedule(odp_queue_t *from, uint64_t wait); * @return Number of events outputed (0 ... num) */ int odp_schedule_multi(odp_queue_t *from, uint64_t wait, odp_event_t events[], - unsigned int num); + int num); /** * Pause scheduling diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c index 999c800..3427082 100644 --- a/platform/linux-generic/odp_schedule.c +++ b/platform/linux-generic/odp_schedule.c @@ -386,7 +386,7 @@ odp_event_t odp_schedule(odp_queue_t *out_queue, uint64_t wait) int odp_schedule_multi(odp_queue_t *out_queue, uint64_t wait, - odp_event_t events[], unsigned int num) + odp_event_t events[], int num) { return schedule_loop(out_queue, wait, events, num, MAX_DEQ); }