Message ID | 1373883682-7723-1-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBWVBR6HQKGQELXZYB7Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DBB1F25E13 for <linaro@patches.linaro.org>; Mon, 15 Jul 2013 10:37:14 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id bv4sf3629446qab.2 for <linaro@patches.linaro.org>; Mon, 15 Jul 2013 03:37:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=zfuWpMD11key7UNc4XqZou2U/q6pB8jl077Op85YcgU=; b=BT82C9vzUewxHUugfm86Kg572N3Sf9Mkw7R3SVkukrw1TtHyEMj0O56QdLVQWBuFuC PRGPtHo00222pg2BBIIqX1rBfXKtx/WWzMj+HZfmd/GNqRZdq+7wrhZewh2BwqaASQ6D FM7CTpZlBNKA1ezHn8S1Valrm4682wg8ATzdhFk6+EQ+LACw12v0QU21lwflKMddkd3y sAbQx7KWMeRQB1SI4PAn20sVh4pkSJjfEYv5gt/Ha0tr0e4hX0sHII69mtn6aUMHGEsq DGpuXzz7moljOKSfbNj7ZFOC8KGavvetiYShwlrl+tUO/cccUAU5NyFyN2d9qGEuyTNn nyfA== X-Received: by 10.236.112.33 with SMTP id x21mr28042220yhg.57.1373884634494; Mon, 15 Jul 2013 03:37:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.108.98 with SMTP id hj2ls4136282qeb.16.gmail; Mon, 15 Jul 2013 03:37:14 -0700 (PDT) X-Received: by 10.52.95.202 with SMTP id dm10mr24243642vdb.63.1373884634373; Mon, 15 Jul 2013 03:37:14 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id bk8si14680283vec.18.2013.07.15.03.37.14 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:37:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id cz10so9777111veb.36 for <patchwork-forward@linaro.org>; Mon, 15 Jul 2013 03:37:14 -0700 (PDT) X-Received: by 10.221.21.74 with SMTP id qr10mr28053585vcb.25.1373884634251; Mon, 15 Jul 2013 03:37:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.149.77 with SMTP id s13csp62053vcv; Mon, 15 Jul 2013 03:37:13 -0700 (PDT) X-Received: by 10.66.252.234 with SMTP id zv10mr54866024pac.186.1373884633391; Mon, 15 Jul 2013 03:37:13 -0700 (PDT) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id az2si32571628pab.201.2013.07.15.03.37.12 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:37:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kl14so11048646pab.6 for <patches@linaro.org>; Mon, 15 Jul 2013 03:37:12 -0700 (PDT) X-Received: by 10.66.25.10 with SMTP id y10mr53973909paf.96.1373884632878; Mon, 15 Jul 2013 03:37:12 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ht5sm14602138pbb.29.2013.07.15.03.37.09 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:37:12 -0700 (PDT) From: Sachin Kamat <sachin.kamat@linaro.org> To: linaro-mm-sig@lists.linaro.org Cc: linux-media@vger.kernel.org, sumit.semwal@linaro.org, rusty@rustcorp.com.au, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] dma-buf: Replace PTR_RET with PTR_ERR_OR_ZERO Date: Mon, 15 Jul 2013 15:51:22 +0530 Message-Id: <1373883682-7723-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQkxKjntj5WeC071MqJ3I4/J+0e5LahsYJP/tm+hqwBYw3seDF3fk2k8y2DQLIP5rbK8+lBd X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index 6687ba7..1219ab7 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base/dma-buf.c @@ -680,7 +680,7 @@ int dma_buf_debugfs_create_file(const char *name, d = debugfs_create_file(name, S_IRUGO, dma_buf_debugfs_dir, write, &dma_buf_debug_fops); - return PTR_RET(d); + return PTR_ERR_OR_ZERO(d); } #else static inline int dma_buf_init_debugfs(void)
PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- Compile tested and based on the following tree: git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux.git (PTR_RET) Dependent on [1] [1] http://lkml.indiana.edu/hypermail/linux/kernel/1306.2/00010.html --- drivers/base/dma-buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)