From patchwork Thu May 14 11:14:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6404771 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 984FD9F32E for ; Thu, 14 May 2015 11:14:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D046F20444 for ; Thu, 14 May 2015 11:14:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 046E6203DA for ; Thu, 14 May 2015 11:14:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D65C76E273; Thu, 14 May 2015 04:14:27 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 1152E6E273 for ; Thu, 14 May 2015 04:14:26 -0700 (PDT) Received: by pdea3 with SMTP id a3so83220583pde.3 for ; Thu, 14 May 2015 04:14:25 -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=SXxNdSrzHhCWGdroklyK/AmD7u8iYr8VJ9DmuhiXQMc=; b=VwZKRYrD/GSq0hJhHPY9AOpC6A7HECelTbQTbs5S1uBPSAXYN+oZhiV0/rovzdRRT5 2pt6JGZ+I2Ie4dW18uRN1LRhcV3XAD9whoYqBXoYuE4LHDuEXnxenU81HGGuOXa5yQi5 UxpXvbBeUbDI9vRQKKOgqzIzbaQo3/7+lqgx2KABpqHXtmZgXaePRSpAnmpNT42zttZD ZWregt2qmgBd0B3q6Y4u0hAfOKoNxn1sb72EjljamHJk1hjUaHZAqoMHEMhiq6peQQlU 1QWVfr2js6brAa99g0H7Ii2iUOfdlvP89r9T0cZO2xXvFQe819a30xz4N33iGhQTqrB1 tDqw== X-Received: by 10.68.131.225 with SMTP id op1mr7129857pbb.86.1431602065847; Thu, 14 May 2015 04:14:25 -0700 (PDT) Received: from localhost.localdomain ([122.169.175.111]) by mx.google.com with ESMTPSA id jb4sm8828837pbc.87.2015.05.14.04.14.23 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 May 2015 04:14:25 -0700 (PDT) From: Sudip Mukherjee To: David Airlie Subject: [PATCH] drm: remove unused function Date: Thu, 14 May 2015 16:44:15 +0530 Message-Id: <1431602055-24924-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sudip Mukherjee 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 this function was not used anywhere and was giving a build warning. Signed-off-by: Sudip Mukherjee --- 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.