From patchwork Thu Jul 26 20:30:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10546417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CA9C1805 for ; Thu, 26 Jul 2018 20:30:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB3492B800 for ; Thu, 26 Jul 2018 20:30:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FCC32B808; Thu, 26 Jul 2018 20:30:23 +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=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 53A552B800 for ; Thu, 26 Jul 2018 20:30:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 669066E14F; Thu, 26 Jul 2018 20:30:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id 184686E14F; Thu, 26 Jul 2018 20:30:19 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EB743607B9; Thu, 26 Jul 2018 20:30:18 +0000 (UTC) Received: from jcrouse-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 48F7E604D4; Thu, 26 Jul 2018 20:30:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 48F7E604D4 From: Jordan Crouse To: freedreno@lists.freedesktop.org Subject: [PATCH 0/5] drm/msm/dpu: Remove dead code Date: Thu, 26 Jul 2018 14:30:09 -0600 Message-Id: <20180726203014.3270-1-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.18.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP I made a silly little script that looked at the defined symbols in nm and then looked to see if other files in the module used those symbols and if they didn't they were either candidates for removal or to be made static. This is the result. I split the code into per-file chunks for easier review and to make it easier for the developers to object to any given removal but I have no qualms if Sean or Rob want to squash these together in the final patch. Jordan Crouse (5): drm/msm/disp/dpu: Remove unused code from drm_encoder.c drm/msm/disp/dpu: Remove unused code from drm_crtc.c drm/msm/disp/dpu: Remove dpu_kms_utils drm/msm/disp/dpu: Remove unused functions from dpu_formats.c drm/msm/disp/dpu: Mark a handful of functions as static drivers/gpu/drm/msm/Makefile | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 383 +----------------- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 61 --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 87 +--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 14 - .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 23 -- .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 43 +- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h | 48 --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_cdm.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c | 84 ---- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 10 - drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 112 ----- drivers/gpu/drm/msm/disp/dpu1/dpu_kms_utils.c | 153 ------- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 2 +- 18 files changed, 15 insertions(+), 1018 deletions(-) delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_kms_utils.c