From patchwork Wed Feb 4 21:07:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 44387 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 502AF21173 for ; Wed, 4 Feb 2015 21:08:08 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id m14sf2877400wev.3 for ; Wed, 04 Feb 2015 13:08:07 -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: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=3umsRTBgcQgZaIsm5AF7pMNMm9Q0qEIml1Age2r4VLg=; b=jDJLk9GFzT8mXaOPEbgrKW/CVAzT1J4uFXkYY57B5W0AQEAoT2qxQZ8vrbsPY6KylP FlyLy9w9CrUjFqQsobM6RwRUgg5r3eKCFJizl9IsXIxCeK+27bIXr+4rtURPhlmufIyv H3pm6B8KWiw2+eLhOlTuBXDXsFNyePOX4PDNud5eZtzRGuSgcFJaRlmtJ074ZRSG+YWL b9ySR4PR6E98XUElG6EF9a9TAmCYhOQk/9XIhy7C5W0LQQVcOe8kNVgBNiZ0DWiQ/lIM h5ZUM3AcQrtgt5JTux79YbfuNHBxeXbS8S+kiyI95xLXeR41+yHIb+RH27FUJVMYWaBO GKwA== X-Gm-Message-State: ALoCoQkaheZWBUQl7Yz5ncKHabr6I7EvoW5mOvK/CvqOsrqT8vETnTaPCSPCjn7fXC0FjtKnliXe X-Received: by 10.180.212.76 with SMTP id ni12mr3016355wic.0.1423084087598; Wed, 04 Feb 2015 13:08:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.193 with SMTP id le1ls88028lab.11.gmail; Wed, 04 Feb 2015 13:08:07 -0800 (PST) X-Received: by 10.112.170.100 with SMTP id al4mr378436lbc.42.1423084087436; Wed, 04 Feb 2015 13:08:07 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id zf10si2395015lbb.102.2015.02.04.13.08.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 13:08:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id b6so3738160lbj.11 for ; Wed, 04 Feb 2015 13:08:07 -0800 (PST) X-Received: by 10.112.135.196 with SMTP id pu4mr262237lbb.41.1423084087163; Wed, 04 Feb 2015 13:08:07 -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 h5csp743810lbj; Wed, 4 Feb 2015 13:08:06 -0800 (PST) X-Received: by 10.229.99.134 with SMTP id u6mr837976qcn.10.1423084085411; Wed, 04 Feb 2015 13:08:05 -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 40si3462624qgh.10.2015.02.04.13.08.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 13:08:05 -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 1YJ7B4-0006pw-DA; Wed, 04 Feb 2015 21:08:02 +0000 Received: from mail-la0-f46.google.com ([209.85.215.46]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YJ7An-0006oa-LC for lng-odp@lists.linaro.org; Wed, 04 Feb 2015 21:07:45 +0000 Received: by mail-la0-f46.google.com with SMTP id q1so3933308lam.5 for ; Wed, 04 Feb 2015 13:07:40 -0800 (PST) X-Received: by 10.112.132.67 with SMTP id os3mr120471lbb.90.1423084060047; Wed, 04 Feb 2015 13:07:40 -0800 (PST) Received: from macmini.lan (78-82-118-111.tn.glocalnet.net. [78.82.118.111]) by mx.google.com with ESMTPSA id r7sm567954lbs.37.2015.02.04.13.07.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 13:07:39 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Wed, 4 Feb 2015 22:07:25 +0100 Message-Id: <1423084051-12962-4-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423084051-12962-1-git-send-email-ola.liljedahl@linaro.org> References: <1423084051-12962-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv6 3/9] api: odp_buffer.h: undefined behavior description 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.180 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 Signed-off-by: Ola Liljedahl --- (This document/code contribution attached is provided under the terms of agreement LES-LTM-21309) include/odp/api/buffer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/odp/api/buffer.h b/include/odp/api/buffer.h index 09bddf2..e0e25b0 100644 --- a/include/odp/api/buffer.h +++ b/include/odp/api/buffer.h @@ -88,7 +88,9 @@ uint32_t odp_buffer_size(odp_buffer_t buf); /** * Tests if buffer is valid * - * @param buf Buffer handle + * @param buf Buffer handle (possibly invalid) + * @note This is the only buffer API function which accepts invalid buffer + * handles (any bit value) without causing undefined behavior. * * @retval 1 Buffer handle represents a valid buffer. * @retval 0 Buffer handle does not represent a valid buffer.