Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1500437imu; Sun, 18 Nov 2018 03:08:10 -0800 (PST) X-Google-Smtp-Source: AJdET5fUpvsHrdI8882Fi7WhB89ZHWgtp95KW4ub1QHIjRA0Gi7DWPwQ8uS5C33FnX9eBxBZ3hdV X-Received: by 2002:a17:902:2ac3:: with SMTP id j61mr18082249plb.185.1542539290206; Sun, 18 Nov 2018 03:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542539290; cv=none; d=google.com; s=arc-20160816; b=d0XSoJ3+FoVdFRvMmgU8usNcQFRQ6F4+3v9DIgYD3ztpbRv7lQQIne5FbS8q0mDOHl fz2yL3u/EJrm66p/ZFwb/yYlGMvQhKs+gdYmXg/DBVgNu7LoU31puOIeHqPFQpsHewCt /JuamW5tkSqTDbWErBivDI5Sf9oA8SY25s+xagpiT7cAImVjs9/LuXLE7iQN9HaKFQvs 5U06kKZRGIY/4VwbtSDtD96xIKl1Fuj13HnPNgx3Ln5r9LpP61k8ZMAcKw04pyZ2mM6e QDqNi7gQ4LXyfqpaBeAwxxiWFa2zQxjmK6VXawo1TgaGzfcP6850I5lBnSzP7KJOuCyJ HO8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=SoG+jVOL4LUA5sztqWC25drUYs59Rgrs3H3hSHn08BQ=; b=ajMI9kAICC3bPrClHiu2uq6Y3bdNMLBMEkFOqg5c9WFobYvrGa2yewXovukwzj4Ma1 6LPkV+W2xvlKWEe3cimMVbDB3U2xWJnUZtT1u+xu+ieABGxsKuyR6gD7LK0j6WyMt1lj 1wUGgauN5z0lUh5TZyQPnbOBLjjcyXScBe0MTMEdjR9ZCPyjQ3y1UnJ8Usozx4GZh7Qh V5WgPSQFysCnVyj4aIQxkSp7IoPgUPfjkQV6pf7pPmShfRKMjhRy1Vo500eKDm6EWIfJ 3fXfyAvnO10U/mFBdyVWtenrT/sFxxeIAuCJScwf3ARuflpXtS3bt3aUiUtCU+vGJClR QhHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si31497746pgh.368.2018.11.18.03.07.34; Sun, 18 Nov 2018 03:08:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727195AbeKRVYU (ORCPT + 99 others); Sun, 18 Nov 2018 16:24:20 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:38576 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbeKRVYU (ORCPT ); Sun, 18 Nov 2018 16:24:20 -0500 X-IronPort-AV: E=Sophos;i="5.56,248,1539640800"; d="scan'208";a="356152582" Received: from abo-186-120-68.mrs.modulonet.fr (HELO hadrien) ([85.68.120.186]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2018 12:04:04 +0100 Date: Sun, 18 Nov 2018 12:04:04 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Fernando Ramos cc: dri-devel@lists.freedesktop.org, David Airlie , Maarten Lankhorst , Maxime Ripard , Sean Paul , Jonathan Corbet , Alexey Brodkin , Boris Brezillon , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Gerd Hoffmann , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Lucas Stach , Russell King , Christian Gmeiner , Marek Vasut , Stefan Agner , Kieran Bingham , Linus Walleij , Shawn Guo , Julia Lawall , Gilles Muller , Nicolas Palix , Michal Marek , Haneen Mohammed , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, virtualization@lists.linux-foundation.org, etnaviv@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, cocci@systeme.lip6.fr Subject: Re: [PATCH 8/9] drm: remove no longer needed drm-get-put coccinelle script In-Reply-To: <20181115221634.22715-9-greenfoo@gluegarage.com> Message-ID: References: <20181115221634.22715-1-greenfoo@gluegarage.com> <20181115221634.22715-9-greenfoo@gluegarage.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Nov 2018, Fernando Ramos wrote: > The coccinelle script was used to rename some (deprecated) functions > which no longer exist now. > > Signed-off-by: Fernando Ramos Acked-by: Julia Lawall > --- > scripts/coccinelle/api/drm-get-put.cocci | 78 ------------------------ > 1 file changed, 78 deletions(-) > delete mode 100644 scripts/coccinelle/api/drm-get-put.cocci > > diff --git a/scripts/coccinelle/api/drm-get-put.cocci b/scripts/coccinelle/api/drm-get-put.cocci > deleted file mode 100644 > index 3a09c97ad87d..000000000000 > --- a/scripts/coccinelle/api/drm-get-put.cocci > +++ /dev/null > @@ -1,78 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0 > -/// > -/// Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and > -/// drm_*_unreference() helpers. > -/// > -// Confidence: High > -// Copyright: (C) 2017 NVIDIA Corporation > -// Options: --no-includes --include-headers > -// > - > -virtual patch > -virtual report > - > -@depends on patch@ > -expression object; > -@@ > - > -( > -- drm_connector_reference(object) > -+ drm_connector_get(object) > -| > -- drm_connector_unreference(object) > -+ drm_connector_put(object) > -| > -- drm_framebuffer_reference(object) > -+ drm_framebuffer_get(object) > -| > -- drm_framebuffer_unreference(object) > -+ drm_framebuffer_put(object) > -| > -- drm_gem_object_reference(object) > -+ drm_gem_object_get(object) > -| > -- drm_gem_object_unreference(object) > -+ drm_gem_object_put(object) > -| > -- __drm_gem_object_unreference(object) > -+ __drm_gem_object_put(object) > -| > -- drm_gem_object_unreference_unlocked(object) > -+ drm_gem_object_put_unlocked(object) > -| > -- drm_dev_unref(object) > -+ drm_dev_put(object) > -) > - > -@r depends on report@ > -expression object; > -position p; > -@@ > - > -( > -drm_connector_unreference@p(object) > -| > -drm_connector_reference@p(object) > -| > -drm_framebuffer_unreference@p(object) > -| > -drm_framebuffer_reference@p(object) > -| > -drm_gem_object_unreference@p(object) > -| > -drm_gem_object_reference@p(object) > -| > -__drm_gem_object_unreference(object) > -| > -drm_gem_object_unreference_unlocked(object) > -| > -drm_dev_unref@p(object) > -) > - > -@script:python depends on report@ > -object << r.object; > -p << r.p; > -@@ > - > -msg="WARNING: use get/put helpers to reference and dereference %s" % (object) > -coccilib.report.print_report(p[0], msg) > -- > 2.19.1 > >