From patchwork Mon Jun 18 11:01:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 10470907 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 900E86029B for ; Mon, 18 Jun 2018 11:02:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 818562880D for ; Mon, 18 Jun 2018 11:02:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7672A2899B; Mon, 18 Jun 2018 11:02:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4AD5F2880D for ; Mon, 18 Jun 2018 11:02:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DB0196E3C4; Mon, 18 Jun 2018 11:02:20 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2CB826E3CA; Mon, 18 Jun 2018 11:02:13 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id v16-v6so13318977wmh.5; Mon, 18 Jun 2018 04:02:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=QZSMTGGFkfDAhpkihB7jdEtDVf7xEWxD7t+f89nXF34=; b=OX0pjGc1W7pbAeIrmp3voOXBQhuSxoPt6LwAvlXF+ohXXF8sie+lv1zwKWvDjG8xhd +ZQpoKk0K7BSImll9KjfvjQUBGY06gScOw6f8moSNCHT4PnxSyPLYgBJo2AjtoIncNBP XPZPbpE4hIY/ie/01dCJ1XICB3InLGxKn8JGp3maLLKu2fYZoAznsPbpRYuVwEOlHAy+ DoRNJgB9Mn3clv07lxZQwCddmdgWpyJcrQIsWwRlP/WsrRxzW2h80cAph+IxJ452f1k3 BXLQjlB9ym8SFF2xNtNMww4qZstXLHGUsv+UcHZ0Z4kRNpUUl7Z6QLGwgW5pj30UhB+h 3dQw== X-Gm-Message-State: APt69E1TSE7o0izeBm3Zw2YLk2H9Ge3HSBGMK+ScS19Gb1FjuGAIUebo SwljY6WUabzM0FVVCKLOxIkYMgtX X-Google-Smtp-Source: ADUXVKJ4QCNzpc/RCIWysfHPRRhx3uEa1pScPsvZtVteha38IWNQpwu9lZk25/tAnBa9UsK0lhvNlA== X-Received: by 2002:aa7:c396:: with SMTP id k22-v6mr10831393edq.149.1529319731729; Mon, 18 Jun 2018 04:02:11 -0700 (PDT) Received: from localhost.localdomain (200116b82a328300a80ff4c3a5bdfeeb.dip.versatel-1u1.de. [2001:16b8:2a32:8300:a80f:f4c3:a5bd:feeb]) by smtp.gmail.com with ESMTPSA id d16-v6sm8104131ede.21.2018.06.18.04.02.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 04:02:10 -0700 (PDT) From: Thomas Zimmermann To: intel-gfx@lists.freedesktop.org Date: Mon, 18 Jun 2018 13:01:51 +0200 Message-Id: <20180618110154.30462-3-tdz@users.sourceforge.net> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180618110154.30462-1-tdz@users.sourceforge.net> References: <20180618110154.30462-1-tdz@users.sourceforge.net> Subject: [Intel-gfx] [PATCH 2/5] drm/i915: Replace drm_gem_object_{un/reference} with {put, get} functions X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, Thomas Zimmermann , rodrigo.vivi@intel.com MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP This patch unifies the naming of DRM functions for reference counting of struct drm_gem_object. The resulting code is more aligned with the rest of the Linux kernel interfaces. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/i915/i915_gem_object.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_object.h b/drivers/gpu/drm/i915/i915_gem_object.h index 54f00b350779..da6e849f41a4 100644 --- a/drivers/gpu/drm/i915/i915_gem_object.h +++ b/drivers/gpu/drm/i915/i915_gem_object.h @@ -337,13 +337,10 @@ __attribute__((nonnull)) static inline struct drm_i915_gem_object * i915_gem_object_get(struct drm_i915_gem_object *obj) { - drm_gem_object_reference(&obj->base); + drm_gem_object_get(&obj->base); return obj; } -__deprecated -extern void drm_gem_object_reference(struct drm_gem_object *); - __attribute__((nonnull)) static inline void i915_gem_object_put(struct drm_i915_gem_object *obj) @@ -351,9 +348,6 @@ i915_gem_object_put(struct drm_i915_gem_object *obj) __drm_gem_object_unreference(&obj->base); } -__deprecated -extern void drm_gem_object_unreference(struct drm_gem_object *); - __deprecated extern void drm_gem_object_unreference_unlocked(struct drm_gem_object *);