Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1769971imm; Thu, 24 May 2018 00:11:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9aTjAFuyV2AL7XqGixmFBLXw0lihWKhuDGmA5H1mMIvmXc6OMXzMIUchvCfByMzO5xAND X-Received: by 2002:a65:4c8d:: with SMTP id m13-v6mr4915163pgt.310.1527145875608; Thu, 24 May 2018 00:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527145875; cv=none; d=google.com; s=arc-20160816; b=WjFXYjYYIIpK3OcYMVamWYLm7FG2yk1a4HL+4l1NV8VeIrM1dlqYtaeBOyI5p6xCsy x43fu2Vjw8LOdgaApYJpeHBjnRmP5nJ5RkaiLGr9ZTw28vGo2xE3IK1IqmbGehVubxJC p7lObiHi8fHE0o+lxZhPUVwWMuTUpC0Y/flbcP0/v9jlCwzaeWpfFfTlRc8IU76J59eY J2ASNVF2gUwBRWKWipczQFxJroZQEm3Wi6QQqBi/jePQTQEGdcZaf0ikHw/9v3M6d70u QcistgmW6WzfZMw+ZyeljTsfO9KHX64ClYvujjyIw9003f9UOovZzcHziyYIAXoiPXEh ZfVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5C8d3XEVPJw3oAhSe02klOFH8TjrqrBV3cvYNbztPXM=; b=wz8MWeaighQ0RmZEmw5vF1Jchj3UEAHxYJuk1RYz1GKd7DfB5yGzoWFNAPzJO6757m Kn8VJcdwr2Ul6xoPWsZ/ZklS1hReML4FAK82849HR1KA2MoMhK0Z8aZwbdGnF9Zp+l2A +vTRYiCfxutGMg1YATXi6nA+216D/UpkFlVIA9MooLs6MEsvhFX4i3v1hf9Gds1zTeyv +E9hMn5/sCw3W9FAxJYkx3HLoMiNEEAXVZjBjOahOqoj8ljuDNgpiBJTKNL8lv82i6Ra 84BN+jEKk4Lg/OJA1PvEnnzo7kYoJ6TGRWnSZckQIwV0if3TB3AaXT2uN953AvJAhc0I 8mjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n64-v6si16043841pga.265.2018.05.24.00.11.00; Thu, 24 May 2018 00:11:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965029AbeEXHI0 (ORCPT + 99 others); Thu, 24 May 2018 03:08:26 -0400 Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:39632 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964973AbeEXHHo (ORCPT ); Thu, 24 May 2018 03:07:44 -0400 Received: from belgarion.home ([90.55.202.35]) by mwinf5d01 with ME id q77G1x00i0mKt3N0377hXg; Thu, 24 May 2018 09:07:42 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Thu, 24 May 2018 09:07:42 +0200 X-ME-IP: 90.55.202.35 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Ezequiel Garcia , Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Liam Girdwood , Mark Brown , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, dmaengine@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v2 11/13] dmaengine: pxa: make the filter function internal Date: Thu, 24 May 2018 09:07:01 +0200 Message-Id: <20180524070703.11901-12-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180524070703.11901-1-robert.jarzmik@free.fr> References: <20180524070703.11901-1-robert.jarzmik@free.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the pxa architecture and all its related drivers do not rely anymore on the filter function, thanks to the slave map conversion, make pxad_filter_fn() static, and remove it from the global namespace. Signed-off-by: Robert Jarzmik --- drivers/dma/pxa_dma.c | 5 ++--- include/linux/dma/pxa-dma.h | 11 ----------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/dma/pxa_dma.c b/drivers/dma/pxa_dma.c index 9505334f9c6e..a332ad1d7dfb 100644 --- a/drivers/dma/pxa_dma.c +++ b/drivers/dma/pxa_dma.c @@ -179,7 +179,7 @@ static unsigned int pxad_drcmr(unsigned int line) return 0x1000 + line * 4; } -bool pxad_filter_fn(struct dma_chan *chan, void *param); +static bool pxad_filter_fn(struct dma_chan *chan, void *param); /* * Debug fs @@ -1496,7 +1496,7 @@ static struct platform_driver pxad_driver = { .remove = pxad_remove, }; -bool pxad_filter_fn(struct dma_chan *chan, void *param) +static bool pxad_filter_fn(struct dma_chan *chan, void *param) { struct pxad_chan *c = to_pxad_chan(chan); struct pxad_param *p = param; @@ -1509,7 +1509,6 @@ bool pxad_filter_fn(struct dma_chan *chan, void *param) return true; } -EXPORT_SYMBOL_GPL(pxad_filter_fn); module_platform_driver(pxad_driver); diff --git a/include/linux/dma/pxa-dma.h b/include/linux/dma/pxa-dma.h index 9fc594f69eff..fceb5df07097 100644 --- a/include/linux/dma/pxa-dma.h +++ b/include/linux/dma/pxa-dma.h @@ -23,15 +23,4 @@ struct pxad_param { enum pxad_chan_prio prio; }; -struct dma_chan; - -#ifdef CONFIG_PXA_DMA -bool pxad_filter_fn(struct dma_chan *chan, void *param); -#else -static inline bool pxad_filter_fn(struct dma_chan *chan, void *param) -{ - return false; -} -#endif - #endif /* _PXA_DMA_H_ */ -- 2.11.0