From patchwork Sat Mar 5 20:10:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 63627 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp786882lbc; Sat, 5 Mar 2016 16:45:06 -0800 (PST) X-Received: by 10.107.165.78 with SMTP id o75mr17331511ioe.56.1457225106421; Sat, 05 Mar 2016 16:45:06 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 33si6050912iod.65.2016.03.05.16.45.05; Sat, 05 Mar 2016 16:45:06 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id AAA69617DC; Sun, 6 Mar 2016 00:45:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DATE_IN_PAST_03_06, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6F2456184D; Sun, 6 Mar 2016 00:44:15 +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 B1B6261852; Sun, 6 Mar 2016 00:44:09 +0000 (UTC) Received: from mail-pf0-f176.google.com (mail-pf0-f176.google.com [209.85.192.176]) by lists.linaro.org (Postfix) with ESMTPS id D6A93617DC for ; Sun, 6 Mar 2016 00:43:38 +0000 (UTC) Received: by mail-pf0-f176.google.com with SMTP id 124so57960696pfg.0 for ; Sat, 05 Mar 2016 16:43:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7OIi61WtEk7rqxGSdKDj3pedoHBeY+K4eBQ28HJ0O7U=; b=JTm2P/DG6Ac5ZndGUJQt/NjYkQ00wAJTt2juww4D40Lizs7tLLBI51PVvsQfT5kG3Y gUpFvxY4Y0JF3QhUwSehTC3AQSv+C5HQb7WZExZ/JfCGln0hg3peaeinMid/8UgSuaZ9 ZrXfpYAEhzuTAgGzhHYjOc8PiMCb7hY5T2LYXMnH7ChFeAgrga3moVHDKRIgYSdmAptx /vKooMCJQx1GTgKWU76W7coLEeQK1DVTv50HN1k/NOpreo8BTwYudVBDGhz5mOMbyx2j ifvcRIdJSBEyuSYwbcZo09e474FlPICxPejGXhUlEZjsQ3VKNZGu93va/0jbeHHluhVV cugg== X-Gm-Message-State: AD7BkJLOqzp6HJqKwVI1es6/iTs04ZuEH9n3Qh88L3/Z9mgM9YJgDFNahIHoCd3VdkbxuEf4Mco= X-Received: by 10.98.42.150 with SMTP id q144mr23298837pfq.73.1457225018242; Sat, 05 Mar 2016 16:43:38 -0800 (PST) Received: from Ubuntu15.localdomain (110-170-137-3.static.asianet.co.th. [110.170.137.3]) by smtp.gmail.com with ESMTPSA id w20sm14775280pfi.31.2016.03.05.16.43.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 05 Mar 2016 16:43:37 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sun, 6 Mar 2016 07:10:33 +1100 Message-Id: <1457208633-1453-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457208633-1453-1-git-send-email-bill.fischofer@linaro.org> References: <1457208633-1453-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 4/4] api: spinlock: change rc for spinlock_trylock to match other trylock APIs X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Signed-off-by: Bill Fischofer --- include/odp/api/spec/spinlock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/odp/api/spec/spinlock.h b/include/odp/api/spec/spinlock.h index 154d025..a73359d 100644 --- a/include/odp/api/spec/spinlock.h +++ b/include/odp/api/spec/spinlock.h @@ -54,8 +54,8 @@ void odp_spinlock_lock(odp_spinlock_t *splock); * * @param splock Pointer to a spin lock * - * @retval 1 lock acquired - * @retval 0 lock not acquired + * @retval 0 lock not acquired + * @retval !0 lock acquired */ int odp_spinlock_trylock(odp_spinlock_t *splock);