From patchwork Mon Jul 15 10:21:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2827387 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5569C9F967 for ; Mon, 15 Jul 2013 10:37:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10CB9201CA for ; Mon, 15 Jul 2013 10:37:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF43C201C4 for ; Mon, 15 Jul 2013 10:37:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755102Ab3GOKhO (ORCPT ); Mon, 15 Jul 2013 06:37:14 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:38344 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755078Ab3GOKhN (ORCPT ); Mon, 15 Jul 2013 06:37:13 -0400 Received: by mail-pb0-f44.google.com with SMTP id uo1so11079851pbc.31 for ; Mon, 15 Jul 2013 03:37:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=zfuWpMD11key7UNc4XqZou2U/q6pB8jl077Op85YcgU=; b=DQh0F/CGbzaINE25eGa3dKmfvtaCAOuaINzyrIZjGdsTXF1XnmK7lvQKiJFAkwzZTp N4M344tjJJIG6tcgwDOOC9P4wgJ7lOXkHAvqURMyJlJNIzy+AIKdIkLht9vDxs0MO+AR cFQy9skrXjr3+/N6sQzc6b/x9FcdZFR2P4557Huluc/NEh4e8sfpSY/I8axnMJ7sYQep cn+XRkt7/eQVPhfc9u22zn504U+ywqMVKXn5T+T8Avqc3GeXvQ48Cwx1/mbeUmld/Pa0 ay/4Czg4hPHvmwP6EkY1dS6q5QpsYoHfIb+S43nta5AJZ91v9RvgXxXxyf9WdV5yX4SN +xgQ== 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 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:37:12 -0700 (PDT) From: Sachin Kamat 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: ALoCoQn1pmuwG3P9zUc7oK0SfEBc5+bjLju5j3F/0FrstetLQrNvivxXv1HVO91/zbbnmPv1VxLa Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP PTR_RET is now deprecated. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Sachin Kamat --- 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(-) 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)