From patchwork Tue May 19 11:38:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 6436301 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 16F0F9F399 for ; Tue, 19 May 2015 11:39:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55CD52049E for ; Tue, 19 May 2015 11:39:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 72B5620452 for ; Tue, 19 May 2015 11:39:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC3CF6E634; Tue, 19 May 2015 04:39:06 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 742236E634 for ; Tue, 19 May 2015 04:39:05 -0700 (PDT) Received: by pdea3 with SMTP id a3so21339609pde.2 for ; Tue, 19 May 2015 04:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ATA7deOrJDLOlnuiB+ZkXyV+g15+y+z2Cm/TqASSfSE=; b=AGW2wPqsbaIF6yEvLlnG9TBoAULxvglrnpFcTA2DE4OjWXat4oBdpkgsvfsZ5yJLT3 PnuUlinEAC26FO81al8guaX8d7EmknsozNcDOBVYTssFCUh18EotncDC9KJzrnhhm1Lx slqvSXbEN1vDdti4KeR+XOZhlNuA7z4jjwfMIp7lT2fAQry/8N2cYn0h8I9ids15HCgG 9iHuVldX6bhSujYXZ9756F23R9ONkpKvL+XqsAYCJJi4+pQr7metWuEBp2V0WOePeFQc QOhU6kZJvipKy7dAe5y8gKI8aEJfrVqugYnRHaEmMJfoMIbTWxv4F7c+wfMM1yunJDma Dmew== X-Received: by 10.70.98.197 with SMTP id ek5mr52949823pdb.109.1432035545143; Tue, 19 May 2015 04:39:05 -0700 (PDT) Received: from swordfish.localdomain ([112.168.75.135]) by mx.google.com with ESMTPSA id hj11sm12870841pbd.33.2015.05.19.04.39.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 May 2015 04:39:04 -0700 (PDT) From: Sergey Senozhatsky To: David Airlie Subject: [PATCH] drm: drop drm_property_unreference_blob_locked() Date: Tue, 19 May 2015 20:38:36 +0900 Message-Id: <1432035516-2909-1-git-send-email-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.4.1.168.g1ea28e1 Cc: Sergey Senozhatsky , Daniel Stone , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP drm_property_unreference_blob_locked() is static and unused, drop it. Signed-off-by: Sergey Senozhatsky --- drivers/gpu/drm/drm_crtc.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 4059f06..6e60f71 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -4313,25 +4313,6 @@ void drm_property_unreference_blob(struct drm_property_blob *blob) EXPORT_SYMBOL(drm_property_unreference_blob); /** - * drm_property_unreference_blob_locked - Unreference a blob property with blob_lock held - * - * Drop a reference on a blob property. May free the object. This must be - * called with blob_lock held. - * - * @param dev Device the blob was created on - * @param blob Pointer to blob property - */ -static void drm_property_unreference_blob_locked(struct drm_property_blob *blob) -{ - if (!blob) - return; - - DRM_DEBUG("%p: blob ID: %d (%d)\n", blob, blob->base.id, atomic_read(&blob->refcount.refcount)); - - kref_put(&blob->refcount, drm_property_free_blob); -} - -/** * drm_property_reference_blob - Take a reference on an existing property * * Take a new reference on an existing blob property.