Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8598997imu; Thu, 15 Nov 2018 14:17:57 -0800 (PST) X-Google-Smtp-Source: AJdET5fJTVmywAKH/FijZi21wnxQOCqFmM9y6uo0MiGnvw8id8KBZy8L2PGpq8l4OPf9p8YU39ym X-Received: by 2002:a63:101:: with SMTP id 1mr7538546pgb.152.1542320277686; Thu, 15 Nov 2018 14:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542320277; cv=none; d=google.com; s=arc-20160816; b=k4zaBAJLmkuL470mE+QtV9T1RR0EAAAkaRJUOOubJRb59MqkkWetSnw/1lKseA2xj1 xGb5phZ+Zv/GrYSi3UWU25ekqDbRmSa6KOrYk2y3s2wabnapkblRiKojVTMH18apRsoI JrNBwy3wZrzk5OAG58PQb8gc5NNWOMiAnZqVjB3T1Lk2+yg16lPogNtNEJNAf/j5QEOc W4SjLCPh6iZBGTX47RnUTsEJGD0g4r13KmR8ZEw10A/5F4rYDja0R6Np8Krd8CiJWNvJ 27TX5Zk15hAFLhXdXFfV9vP2C2pfbHzZ/nKp5WXmDvdHxHMY7V1QU8bs8W7jb1u6Px5l WN6g== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=IZYxCftFemGWl2wFyTdCQGDZ2De25PDU9vVwfWgX7ig=; b=dRbb3c5beHW9LVvHzyWtk0oJ9IYGzYipqmNvvM+DWinUm8UBI13Ef5xd1A3gXbfgs9 F2CrxhraqGpVkVsr75RnAEstG75Lo2y0DjXKgg53c7sjxhUWtJm+E9NH3FmRSEqzLDZK cqX+VWgNxi96Sp/1lxCMPpb3l3PGf17kVRBctOQssRbX7RC1YimQfMSlgc3vzh+bcHFh UOolD4gJre4TI+diELmjtOFLawKOnTVpKb2SJl0UNVlcaNk9OxVjcl6t58flNsSBlKNV VUzoVFz9IcByHa0sFX6/jn6qYwAo26kxPtXQS0d9eaVxTfbiE8ReKz0/8fjuNTjlVcH+ Fj0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gluegarage.com header.s=mesmtp header.b=S4S7ZPVB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=qxSq830o; 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 t4si12901126pgg.110.2018.11.15.14.17.42; Thu, 15 Nov 2018 14:17:57 -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=S4S7ZPVB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=qxSq830o; 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 S1726407AbeKPI0p (ORCPT + 99 others); Fri, 16 Nov 2018 03:26:45 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:59835 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbeKPI0p (ORCPT ); Fri, 16 Nov 2018 03:26:45 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1D93C23174; Thu, 15 Nov 2018 17:17:04 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 15 Nov 2018 17:17:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gluegarage.com; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=IZYxCftFemGWl2wFyTdCQGD Z2De25PDU9vVwfWgX7ig=; b=S4S7ZPVB95OlIhWqRfdiHyJYVMZL2KGrsPWNF7K K+4A//g5AyUcnUsdgjPRR8Ffuchv7x1sUN7GBDu11G2vMGxmrbiTOCjWvAeSwZnI D6Hnb7BKjXCuFfVDMbFn90kFf6m0ehgxxXFF9CaHYIq5oBj/PQIZwd/cbZeK/hFd 1vbM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=IZYxCftFemGWl2wFy TdCQGDZ2De25PDU9vVwfWgX7ig=; b=qxSq830oSg3YFPBHuGLYwKqAfxWEt8C6p LBn96QEp9EXsRVYS9l37/dN6st6ZNPo5yTj+O/zTmrTZC4m6c0TYgaDJDp4AH/2w 7rqvBGTZZIWtiK4VHuEAIshfO8d6lq6NGu9WF4soNp8PQqaczLwuoK7oVc3hXTQr AxvY36FyrFz5BPyEF5xdFaF6yq175Fabt5TokR75Tfpm0kehPq6ScKjJSn3txEux B2y0CWNxBY51N1s7lXHXxU6rFXRPWt90Ouned43QUPFADkrIMwtTXF0QVV/g2cYm +esbDBGMrz4UlIR8P89n8CIkuE++5cTlnFreCYvziYXBOx7uX5IGQ== X-ME-Sender: X-ME-Proxy: Received: from zaca_x230.localdomain (unknown [109.205.143.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 2AFB2E48FA; Thu, 15 Nov 2018 17:16:52 -0500 (EST) From: Fernando Ramos To: dri-devel@lists.freedesktop.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , 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 0/9] drm: remove deprecated functions Date: Thu, 15 Nov 2018 23:16:20 +0100 Message-Id: <20181115221634.22715-1-greenfoo@gluegarage.com> X-Mailer: git-send-email 2.19.1 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 Hi all, One of the things in the DRM TODO list ("Documentation/gpu/todo.rst") was to "switch from reference/unreference to get/put". That's what this patch series is about. In the past year or so most of the functions had already been renamed and only a few remained, which are the ones I fix here. In addition, now that all calls to these deprecated functions are gone, this patch also removes their implementation and the coccinelle script that takes care of them (which is no longer needed). Anyway, this is my first patch and I'm sure I've done something wrong. Please let me know :) Fernando Ramos (9): drm: replace "drm_gem_object_unreference_unlocked" function with "*put_unlocked" drm: remove deprecated "[__]drm_gem_object_[un]reference[_locked]" functions drm: replace "drm_dev_unref" function with "drm_dev_put" drm: remove deprecated "drm_dev_unref" function drm: replace "drm_connector_unreference" with "drm_connector_put" drm: remove deprecated "drm_connector_[un]reference" functions drm: remove deprecated "drm_framebuffer_[un]reference" functions drm: remove no longer needed drm-get-put coccinelle script docs: drm: remove no longer relevant TODO entry Documentation/gpu/todo.rst | 17 ----- drivers/gpu/drm/arc/arcpgu_drv.c | 4 +- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 4 +- drivers/gpu/drm/bochs/bochs_mm.c | 4 +- drivers/gpu/drm/bridge/tc358764.c | 2 +- drivers/gpu/drm/drm_drv.c | 13 ---- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 +- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 4 +- drivers/gpu/drm/tve200/tve200_drv.c | 4 +- drivers/gpu/drm/zte/zx_drm_drv.c | 4 +- include/drm/drm_connector.h | 24 ------ include/drm/drm_drv.h | 1 - include/drm/drm_framebuffer.h | 24 ------ include/drm/drm_gem.h | 50 ------------- scripts/coccinelle/api/drm-get-put.cocci | 78 -------------------- 17 files changed, 18 insertions(+), 225 deletions(-) delete mode 100644 scripts/coccinelle/api/drm-get-put.cocci -- 2.19.1