From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754682AbbLIXYN (ORCPT ); Wed, 9 Dec 2015 18:24:13 -0500 Received: from mail5.windriver.com ([192.103.53.11]:55891 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754187AbbLIXYK (ORCPT ); Wed, 9 Dec 2015 18:24:10 -0500 From: Paul Gortmaker To: CC: Paul Gortmaker , Alexandre Courbot , Daniel Mack , Dan Williams , Haojian Zhuang , Laxman Dewangan , Robert Jarzmik , Stephen Warren , Thierry Reding , Vinod Koul , , , Subject: [PATCH 0/6] drivers/dma: drop modular code from non modular drivers Date: Wed, 9 Dec 2015 18:21:56 -0500 Message-ID: <1449703322-17762-1-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.6.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of commits is a slice of a larger project to ensure people don't have dead code for module removal in non-modular drivers. Overall there is roughly 5k lines of dead code in the kernel due to this. There is a quasi-separate theme, in that some of the drivers were allowing an unbind implicitly since it is enabled by default. But for core DMA infrastructure drivers, this doesn't seem useful -- so we also disable that here which allows us to delete any ".remove" functions from the drivers that would otherwise be called during the (impossible to trigger) module removal. Since ARM covers these files the best of all architectures, each file was build tested for allmodconfig on ARM, which at the same time confirms that the files are not built with "CC [M]" -- hence genuinely non-modular. My testing and the larger patch series in general has been done against the latest linux-next tree. Paul. --- Cc: Alexandre Courbot Cc: Daniel Mack Cc: Dan Williams Cc: Haojian Zhuang Cc: Laxman Dewangan Cc: Robert Jarzmik Cc: Stephen Warren Cc: Thierry Reding Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-tegra@vger.kernel.org Paul Gortmaker (6): drivers/dma: make edma.c explicitly non-modular drivers/dma: make mmp_pdma.c explicitly non-modular drivers/dma: make mmp_tdma.c explicitly non-modular drivers/dma: make pxa_dma.c explicitly non-modular drivers/dma: make sh/shdma-*.c explicitly non-modular drivers/dma: make tegra20-apb-dma.c explicitly non-modular drivers/dma/edma.c | 37 ++++++------------------------------- drivers/dma/mmp_pdma.c | 21 ++++----------------- drivers/dma/mmp_tdma.c | 22 +++------------------- drivers/dma/pxa_dma.c | 38 +++----------------------------------- drivers/dma/sh/shdma-base.c | 14 ++------------ drivers/dma/sh/shdma-of.c | 11 +++-------- drivers/dma/tegra20-apb-dma.c | 35 ++++------------------------------- 7 files changed, 25 insertions(+), 153 deletions(-) -- 2.6.1 Paul Gortmaker (6): drivers/dma: make edma.c explicitly non-modular drivers/dma: make mmp_pdma.c explicitly non-modular drivers/dma: make mmp_tdma.c explicitly non-modular drivers/dma: make pxa_dma.c explicitly non-modular drivers/dma: make sh/shdma-*.c explicitly non-modular drivers/dma: make tegra20-apb-dma.c explicitly non-modular drivers/dma/edma.c | 37 ++++++------------------------------- drivers/dma/mmp_pdma.c | 21 ++++----------------- drivers/dma/mmp_tdma.c | 22 +++------------------- drivers/dma/pxa_dma.c | 38 +++----------------------------------- drivers/dma/sh/shdma-base.c | 14 ++------------ drivers/dma/sh/shdma-of.c | 11 +++-------- drivers/dma/tegra20-apb-dma.c | 35 ++++------------------------------- 7 files changed, 25 insertions(+), 153 deletions(-) -- 2.6.1