From patchwork Wed Feb 15 17:57:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9574659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7D0B86045F for ; Wed, 15 Feb 2017 17:57:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6683E284DE for ; Wed, 15 Feb 2017 17:57:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 575F728502; Wed, 15 Feb 2017 17:57:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE568284DE for ; Wed, 15 Feb 2017 17:57:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96FBD6E92E; Wed, 15 Feb 2017 17:57:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 084706E92E for ; Wed, 15 Feb 2017 17:57:32 +0000 (UTC) Received: by mail-qk0-f194.google.com with SMTP id u25so24337216qki.2 for ; Wed, 15 Feb 2017 09:57:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YI7KWz5Fk+ItAE1Ii3bu2YW0WpZKUv+dxJ4BhqqVI8M=; b=TRJTjFhdx9aqGvit5aPacJRmrKK63J/1Tk+7+YBUf11Q29jcMjm49ZjJBMg3TyIVQq vxSFiGG/wRBHg5JtSFMi9RvuZF90OPeiznmWeJnExGTMSGkujLJKTiaDBd/uZQbu6gNq n8ZOY7rCP7cstJxXLTvT8b3sp/aH4qi6P3Hue80hQloOLfUGebhaQyQUTDLgBQtauJCQ qUVOPmBLnRTZiVyknxw3qDWbsFEUw6uoyFgM0BfMqlIoG5FHkoF15JbYH8uOKjpRFrNi QcKWEy5ftzrF5UWh9l7blEf86QJmycpdZpmr5yAVb3p51D5dozOGddU/Me8q5LyS9k38 y82Q== X-Gm-Message-State: AMke39nf1smwYfI5s8ZxdyDsg5y8QBjOyTr/Vz8qIg0jIuo6zDe4jMbayLWNHJfEU15egQ== X-Received: by 10.55.80.214 with SMTP id e205mr33502916qkb.60.1487181451149; Wed, 15 Feb 2017 09:57:31 -0800 (PST) Received: from localhost.localdomain ([187.64.235.185]) by smtp.gmail.com with ESMTPSA id x13sm2734454qtc.51.2017.02.15.09.57.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 09:57:30 -0800 (PST) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH] dma-buf/dma-fence: improve doc for dma_fence_add_callback() Date: Wed, 15 Feb 2017 15:57:25 -0200 Message-Id: <20170215175725.6692-1-gustavo@padovan.org> X-Mailer: git-send-email 2.9.3 Cc: Gustavo Padovan X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Document return values for this function. Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson --- drivers/dma-buf/dma-fence.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index d1f1f45..809b397 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -239,6 +239,8 @@ EXPORT_SYMBOL(dma_fence_enable_sw_signaling); * after it signals with dma_fence_signal. The callback itself can be called * from irq context. * + * Returns 0 in case of success, -ENOENT if the fence is already signaled + * and -EINVAL in case of error. */ int dma_fence_add_callback(struct dma_fence *fence, struct dma_fence_cb *cb, dma_fence_func_t func)