From patchwork Mon Jul 15 10:34:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2827427 Return-Path: X-Original-To: patchwork-dri-devel@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 6B5D29F9A0 for ; Mon, 15 Jul 2013 11:47:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4385B20186 for ; Mon, 15 Jul 2013 11:47:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 831F020184 for ; Mon, 15 Jul 2013 11:47:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 85EDFE614D for ; Mon, 15 Jul 2013 04:47:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E75FE5EE5 for ; Mon, 15 Jul 2013 03:50:39 -0700 (PDT) Received: by mail-pa0-f47.google.com with SMTP id kl14so10955309pab.20 for ; Mon, 15 Jul 2013 03:50:38 -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=HcNqYCrmaKIk3Q2+yFhtEhPAvZTM7ISOItcEFKbqfh4=; b=DAVJOmhwLGEeAXhd/8pEFDQjLzfR3n0I3ty8igCz6cestElrZZCb1NMU5xnR1FfLHu yGSbZ6hKQTE+xrbLJLDSvLsdTJx7fU8vIJtu+7f6nbmSLOkjjtaXHt8ZZz9ZOWHfKaBs SbRlQHBGIfikVFQtU3LRZZEtz+mMCgCCRBjEriJZ5n7FDPp1sd+dNIxt9hSI9c4oH1Ep 6sWroY36Q09ljq/ZhsSwLRUTxV5u+xIuHYnUFtF2ftDXEV/l+X9sx86X8YVmaR8Nz1Kk cGgyRzDk+awANXOnFgXN+EIbx4r65YdMpNvKyB//BsoFWwQhkcCKlLp8tlS3W7QgeJO8 KPRg== X-Received: by 10.66.149.198 with SMTP id uc6mr54747610pab.61.1373885438875; Mon, 15 Jul 2013 03:50:38 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id zf3sm29212678pac.9.2013.07.15.03.50.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:50:38 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/1] drm/cma: Replace PTR_RET with PTR_ERR_OR_ZERO Date: Mon, 15 Jul 2013 16:04:46 +0530 Message-Id: <1373884486-29397-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnayHiDvt+XlgUajtIzAIz+vG5RaR/ikui9unlFhqwVZxS6pspLAAuwnp+QElCaJ99sxo3R X-Mailman-Approved-At: Mon, 15 Jul 2013 04:47:07 -0700 Cc: sachin.kamat@linaro.org, rusty@rustcorp.com.au, patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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/gpu/drm/drm_gem_cma_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c index ece72a8..61c1d17 100644 --- a/drivers/gpu/drm/drm_gem_cma_helper.c +++ b/drivers/gpu/drm/drm_gem_cma_helper.c @@ -215,7 +215,7 @@ int drm_gem_cma_dumb_create(struct drm_file *file_priv, cma_obj = drm_gem_cma_create_with_handle(file_priv, dev, args->size, &args->handle); - return PTR_RET(cma_obj); + return PTR_ERR_OR_ZERO(cma_obj); } EXPORT_SYMBOL_GPL(drm_gem_cma_dumb_create);