From patchwork Tue Feb 21 22:03:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9585807 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 BC74A6042F for ; Tue, 21 Feb 2017 22:04:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A210A2842E for ; Tue, 21 Feb 2017 22:04:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9567B28644; Tue, 21 Feb 2017 22:04:46 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham 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 9F3352842E for ; Tue, 21 Feb 2017 22:04:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E78F76E008; Tue, 21 Feb 2017 22:04:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C3A16E008 for ; Tue, 21 Feb 2017 22:04:42 +0000 (UTC) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0LpfQU-1cAnoM3Axy-00fP7K; Tue, 21 Feb 2017 23:04:32 +0100 From: Arnd Bergmann To: Vincent Abriou Subject: [PATCH 2/2] drm/sti: remove unused sti_drm_dbg_cleanup Date: Tue, 21 Feb 2017 23:03:25 +0100 Message-Id: <20170221220408.258430-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170221220408.258430-1-arnd@arndb.de> References: <20170221220408.258430-1-arnd@arndb.de> X-Provags-ID: V03:K0:pVeQ21srVwQJ48kDSi0B/dpmSk5vlr66x5H5wTjJ3qeVKqVB8Qe KmpnKjmXY6W4YTep60cmYJTpOzIzGmjJLSJs8TSGMn7RxaOLDYIaWnchtSK5PluYnRVd3PR Ua7GQQcxm2M/DiejbDSy3WljtrcLFlTytOi2Bj+/S6B9NNvfgth6VnLoxck32cZvpeyk4l2 prV1IjyQzyUSf4+V36Bmg== X-UI-Out-Filterresults: notjunk:1; V01:K0:3Dz99/PnReQ=:1lH9jNsyIDXvTgco7uxzik achguMXQFwNqOQqlzkfcrqo/ldrPta5h5rSEp6kgZV0pFmsxNT7f2tP0QCn2jTod1hA/pRaQA Do/BGwrzKjd52Pr6J2fEEXIqk42F0PVrKBABwpor8YIiLT221w2DK6q/sK1L56UYV9DA+/Z6q 8WfPN/JPvnY0Fzl2OO5ucgh3TwOJcrr1fm8MLeypNwUb5vU115+zcXeD6YFxCUnmhQuMAjjNv z1rPX/JlUtsdIOrbv/v8SMM6hXdNACkbNYn7pFqK8HPhsZqTa+C1cyB/JKCUaALKEKyGY4A+E HHZo3PnYK+I9sxvhtavsJJlvoPErbfycqd9Wv5QlgLhjQnNJKh4xfIi0DugvvGkLIAmoadQ/Y CSDq6cRI3ySxv5N2vWv1kquk94ji2xr/4z9gF4BYIa2O1jbzaQqMQh0Xt7l7xAUfIZv5tOwTx WaOU8DtocZOCK5075C/SUwkCKvK2A3sSJc5UbcohZjDYXTRGTgZ1nbtPMYJd170D1PxWH1u95 2grnqvyo/S7aku8Dlg6ILzT8vC2RHuu1YFzg4zbawZCd5+YT2X1k8Et05pxu/TRvCZbYdNH0R si7GdjyvbIH0eaUjv1TdoP+2i+4N9ftU0+2Ecdhnb0aHga4NOxeCWEypyBfoUA8bfqC4susFa XknvxNbNRZjHVxuXt/voDFxF17LQYxgOjNPDE2BI+I4DHcD6p6ySGcLxdhs9prQIodv0= Cc: Arnd Bergmann , Daniel Vetter , linux-kernel@vger.kernel.org, Fabien DESSENNE , dri-devel@lists.freedesktop.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-Virus-Scanned: ClamAV using ClamSMTP A cleanup patch just introduced this function, but no user, leading to a compile-time warning: drivers/gpu/drm/sti/sti_drv.c:120:13: error: 'sti_drm_dbg_cleanup' defined but not used [-Werror=unused-function] It would be logical that we should actually call this function, but I couldn't see from where, so this patch just shuts up the warning, which may be the wrong approach. Fixes: 5e60f595d6ca ("drm/sti: use atomic_helper for commit") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/sti/sti_drv.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c index e6c1646b9c53..20fc0fbfa849 100644 --- a/drivers/gpu/drm/sti/sti_drv.c +++ b/drivers/gpu/drm/sti/sti_drv.c @@ -117,15 +117,6 @@ static int sti_drm_dbg_init(struct drm_minor *minor) return ret; } -static void sti_drm_dbg_cleanup(struct drm_minor *minor) -{ - drm_debugfs_remove_files(sti_drm_dbg_list, - ARRAY_SIZE(sti_drm_dbg_list), minor); - - drm_debugfs_remove_files((struct drm_info_list *)&sti_drm_fps_fops, - 1, minor); -} - static int sti_atomic_check(struct drm_device *dev, struct drm_atomic_state *state) {