Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8600281imu; Thu, 15 Nov 2018 14:19:30 -0800 (PST) X-Google-Smtp-Source: AJdET5dDFhSYw0kAw+BmKeUzgkd2Ku/LmKmF/SYLMBkPZMhLQMG73XGaauSdhW6XcLFSbdtwfpP9 X-Received: by 2002:a17:902:704c:: with SMTP id h12mr8193139plt.78.1542320370345; Thu, 15 Nov 2018 14:19:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542320370; cv=none; d=google.com; s=arc-20160816; b=tEGjagENKsmGHqEOXp4zMoDHr/NYw+/JbEbIRLpRB7pYjvbGc4i60NtrhV7kgefpW6 QB4p5X5sME0W+1plxEpNu4/yO2B/e06/RjOIHUez/iZiLkGVEctjG0xGlnHYWMVteZ+M EWSZ7Rl52BqZXd7bVEHm/zgajojUxC6/BRIeqviztjykmJgNBx2OkyXQuyGupFZc2kvk 42mktE3pfrEThttzDcwqKR1pjCpuCzXj7FC3uObJpSrKk60eUXT3LpWq09LESpf8MTHM k2vB9lpxdVTO+0VSqcpHnjSB5VrruXms7p9SiLsyllZSxkK+nArKIKUQm0skM5wTLBin Ot1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=mQiY+XZCz9Ns7nNOXsOiTUkbneyFRMkgnJhmjJbz3HA=; b=Wo8I9x2A3kA910DA641HppJWWsc6eTJmp5PXUMO6yVY1IFRd/7KqGijSi9aQOclx4S VDE11G0OaYTqa0geXQJLM1PqU9fBP1mrw3hKTwnUKAn7KOsJ/Sg5NBWKiuAQcbI1BxkX XhQjffE1q74yIJi98GHW9dXCul1sOhC5A9EK9Ge9Z6py8QcmYSIxkzG7TENFssce0FPz lgxPcOIOiQJAMmPG6boJ0e2kR8g/HeHcWiHvMxBBcpKm5COfCQPG33IvQuDeHC0MXmKv JQ72JBDsbk/ROhsNk8uXYGxQG65+wUlxaQWE6fh8JTKwnaKgf1fYa6v8Wk2BB07YWmGb 3hKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gluegarage.com header.s=mesmtp header.b=oHKwvqod; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=R++EWDrq; 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 g21si17410740pgl.114.2018.11.15.14.19.12; Thu, 15 Nov 2018 14:19:30 -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; dkim=pass header.i=@gluegarage.com header.s=mesmtp header.b=oHKwvqod; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=R++EWDrq; 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 S2389114AbeKPI1v (ORCPT + 99 others); Fri, 16 Nov 2018 03:27:51 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41287 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbeKPI1u (ORCPT ); Fri, 16 Nov 2018 03:27:50 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1ABE5229F1; Thu, 15 Nov 2018 17:18:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 15 Nov 2018 17:18:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gluegarage.com; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=mQiY+XZCz9 Ns7nNOXsOiTUkbneyFRMkgnJhmjJbz3HA=; b=oHKwvqod/YeJhDJv8ekzZwXIlI C3ABQeZI3G950c3B/7VyVjFZ/1Em78nfcBoYqfMeSArW6gqAz8TwQGOxtX2haPsZ n/ChKM3SjWuTqumHqwbpPF7dmxsFihuWMCQBzH5yGiLX/Mf4A1/HFq7AOl/baNoE E2LknX+COrlRmhl8g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=mQiY+XZCz9Ns7nNOXsOiTUkbneyFRMkgnJhmjJbz3HA=; b=R++EWDrq kaqrf3GFzCdcJvwrrTX05xLlbc9msmBe9BBUP6O6sPYMIzG6WVH4B+fhtdXW9GrJ laMu23EOG1SH95GH4LMaH5iJbUgrN45vQeM/ItgwbFV7cKvLNYiacM+Oj+BIc7oX eH/efbqz6I3fM1Ir0c4CnluDuJm8iatXhGwWVcw/aUeMtbdDr3aoG6BE3ofkVfjQ hV3DmEe/OiWjQdpbB/hkTcanFkpRw1+MPfl0h7bVfgC3NrXZ9r2EJ4uvsrtk09nm TIjUMH8yyeNa/rQlzAOFmE6Y+xfUXu6wIW113JxVPgdtdLwQ124DVeraTik+Q7US LQdl6kxhWcOktw== X-ME-Sender: X-ME-Proxy: Received: from zaca_x230.localdomain (unknown [109.205.143.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 874DFE46B7; Thu, 15 Nov 2018 17:18:03 -0500 (EST) From: Fernando Ramos To: dri-devel@lists.freedesktop.org Cc: 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: [PATCH 8/9] drm: remove no longer needed drm-get-put coccinelle script Date: Thu, 15 Nov 2018 23:16:28 +0100 Message-Id: <20181115221634.22715-9-greenfoo@gluegarage.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181115221634.22715-1-greenfoo@gluegarage.com> References: <20181115221634.22715-1-greenfoo@gluegarage.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The coccinelle script was used to rename some (deprecated) functions which no longer exist now. Signed-off-by: Fernando Ramos --- 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