From patchwork Mon Jan 27 06:51:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 23739 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B4F332130F for ; Mon, 27 Jan 2014 06:56:03 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id q10sf13249219pdj.2 for ; Sun, 26 Jan 2014 22:56:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=6GUuj8PZvaBRiuiLEndlmHfkRllhjHLK7R3Y8eeYL0E=; b=T0qqfaBMSt/M112uQaJFIaIMtzgFOezl7yVC6jL7NjYsXHQ0M1+NZqzF5HrrC+n4io WUbpDTUmuUvXP/ye6TnPfV1ZH898VKiw6YlsNmNQ9C3g0OYfrj4KDbqxQt1enJCQlGog Gc4Vh3RD450Y3HTosvEitCiV2HpDKeYbwWLWAbi+cSqfYzbsHLgE0vc6szk9YFwM8oNE +d4fb2VMf4uhA6r3im3LnlyUgedAV5qXFdlisiROqMUoxRmJABEz2szHxgU0LAtmko+C qp1ARvfC7Q/rZqXmKpVz3LgaomejKaNjtcT+EqK4TPqnkWRIcv9P0bfMKZ/Qkx6H8Fo5 sKog== X-Gm-Message-State: ALoCoQk5uL+jwp5zR+NTUCiKWPp6+3i56mRv8gfHEYb86Px0J1+BDojRGBlegRLmhfQF1iMzEUDq X-Received: by 10.66.218.70 with SMTP id pe6mr10379966pac.33.1390805762980; Sun, 26 Jan 2014 22:56:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.37 with SMTP id u34ls1376470qgu.37.gmail; Sun, 26 Jan 2014 22:56:02 -0800 (PST) X-Received: by 10.52.30.77 with SMTP id q13mr2476315vdh.18.1390805762859; Sun, 26 Jan 2014 22:56:02 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ke3si149290veb.103.2014.01.26.22.56.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:56:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so3128753vcb.4 for ; Sun, 26 Jan 2014 22:56:02 -0800 (PST) X-Received: by 10.52.227.193 with SMTP id sc1mr2398370vdc.1.1390805762734; Sun, 26 Jan 2014 22:56:02 -0800 (PST) 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.174.196 with SMTP id u4csp108660vcz; Sun, 26 Jan 2014 22:56:02 -0800 (PST) X-Received: by 10.66.26.10 with SMTP id h10mr28378242pag.24.1390805761624; Sun, 26 Jan 2014 22:56:01 -0800 (PST) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id ui8si10082069pac.322.2014.01.26.22.56.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:56:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id rq2so5497749pbb.17 for ; Sun, 26 Jan 2014 22:56:01 -0800 (PST) X-Received: by 10.67.30.70 with SMTP id kc6mr28902054pad.32.1390805761207; Sun, 26 Jan 2014 22:56:01 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id qz9sm28759158pbc.3.2014.01.26.22.55.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:56:00 -0800 (PST) From: Sachin Kamat To: cocci@systeme.lip6.fr Cc: Julia.Lawall@lip6.fr, Gilles.Muller@lip6.fr, nicolas.palix@imag.fr, mmarek@suse.cz, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] scripts/coccinelle: Use PTR_ERR_OR_ZERO Date: Mon, 27 Jan 2014 12:21:22 +0530 Message-Id: <1390805482-25075-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 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 deprecated. Do not recommend its usage anymore. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Sachin Kamat --- scripts/coccinelle/api/ptr_ret.cocci | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/coccinelle/api/ptr_ret.cocci b/scripts/coccinelle/api/ptr_ret.cocci index e18f8402e37c..dd58dab5d411 100644 --- a/scripts/coccinelle/api/ptr_ret.cocci +++ b/scripts/coccinelle/api/ptr_ret.cocci @@ -7,7 +7,7 @@ // URL: http://coccinelle.lip6.fr/ // Options: --no-includes --include-headers // -// Keywords: ERR_PTR, PTR_ERR, PTR_RET, PTR_ERR_OR_ZERO +// Keywords: ERR_PTR, PTR_ERR, PTR_ERR_OR_ZERO // Version min: 2.6.39 // @@ -62,35 +62,35 @@ position p3; p << r1.p1; @@ -coccilib.org.print_todo(p[0], "WARNING: PTR_RET can be used") +coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") @script:python depends on org@ p << r2.p2; @@ -coccilib.org.print_todo(p[0], "WARNING: PTR_RET can be used") +coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") @script:python depends on org@ p << r3.p3; @@ -coccilib.org.print_todo(p[0], "WARNING: PTR_RET can be used") +coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") @script:python depends on report@ p << r1.p1; @@ -coccilib.report.print_report(p[0], "WARNING: PTR_RET can be used") +coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") @script:python depends on report@ p << r2.p2; @@ -coccilib.report.print_report(p[0], "WARNING: PTR_RET can be used") +coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used") @script:python depends on report@ p << r3.p3; @@ -coccilib.report.print_report(p[0], "WARNING: PTR_RET can be used") +coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")