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: 18356 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EEAC025E13 for ; Mon, 15 Jul 2013 10:50:40 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f14sf3637405qak.7 for ; Mon, 15 Jul 2013 03:50:40 -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=HcNqYCrmaKIk3Q2+yFhtEhPAvZTM7ISOItcEFKbqfh4=; b=AOthJPzAZSlqQoKeKj2rVYKJ5wucfiVLWBgMRaQV57uB5oIjN2E8+Hs7w4homHNS/u 8czwteAJu0RF1TOjkunvuqOyEp3eth58T29cvpC1NseLdwgIUB24B5FPg89vO6lYr2HP Rvs+qzD9Xk4fnL++vjo0xlxGyKIU3dvgPCDnqApfOo1KWvf06o+4QeNZ6+xs6DIyBiop tFmVbwdF+QfymuilNRWtVGr+2/F8vdRbRy1KM7Y32scKs7VX1K+5Bq3s3cPLaRhfD99G LlPysY/3mud2oNEpRbwAv6GwrRY/01SeUuczgUu0S2UeAr61kkdpr0empCmcnjoFLn1c u1Rg== X-Received: by 10.236.32.229 with SMTP id o65mr28801824yha.19.1373885440456; Mon, 15 Jul 2013 03:50:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.195 with SMTP id gw3ls4283477qeb.64.gmail; Mon, 15 Jul 2013 03:50:40 -0700 (PDT) X-Received: by 10.220.77.6 with SMTP id e6mr28441998vck.50.1373885440355; Mon, 15 Jul 2013 03:50:40 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id gr9si14673149vec.111.2013.07.15.03.50.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:50:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 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.181; Received: by mail-ve0-f181.google.com with SMTP id db10so9586971veb.40 for ; Mon, 15 Jul 2013 03:50:40 -0700 (PDT) X-Received: by 10.58.6.210 with SMTP id d18mr27736971vea.96.1373885440271; Mon, 15 Jul 2013 03:50:40 -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 s13csp62447vcv; Mon, 15 Jul 2013 03:50:39 -0700 (PDT) X-Received: by 10.68.211.138 with SMTP id nc10mr53207908pbc.162.1373885439411; Mon, 15 Jul 2013 03:50:39 -0700 (PDT) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id co1si32264462pbc.288.2013.07.15.03.50.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 03:50:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id rq2so11195728pbb.33 for ; Mon, 15 Jul 2013 03:50:38 -0700 (PDT) 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 Cc: airlied@linux.ie, rusty@rustcorp.com.au, sachin.kamat@linaro.org, patches@linaro.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: ALoCoQn76Lg5kr/ibjd/P9ueO39i8vSSBNfPpl6GLjqzJvyKtdOy1QXnia/rfcjzhU4qQIhD/PbL X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);