Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3058771imm; Sun, 17 Jun 2018 10:05:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ9lvIH2vfCD6MDcUFk5kpBk7A1BKX7YFVDx/ThtGQ/Zkqj1iJUqOtKeq/XTh4IBXrr4o6T X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr10738361pla.276.1529255128083; Sun, 17 Jun 2018 10:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529255128; cv=none; d=google.com; s=arc-20160816; b=FKW47VfKHAnqfUni4pSkI7IWR6Xk6ZLelSB0FnpwhvlsuX5p4fKLKAa33o+hP0tGjB OeE0UzhWMlP3RmVWHTDPS/5iKeV6R5IR1oAAdOd9EwKngMkFmsKi9RjjrBqCWoJjSQrm ZIfGOYj/BHeZ2f/XJ6JiioQJqzzxAfwkomuxSZBsPwsx0z/xknBEjNhPw/MBPVicthi8 b87oWLjQad5dse0NcL8hUq/mFniqE+88zQb2Mzetu2A7rMDsby7t79PBjLakVe/Yzu5f Lv92Wkmt56LPbWFrOl+rJ7P/xG5SN8oVPZnKS7yY9dfZUwE8znEbWLPimDXJDR17xtmC 6kzA== 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=CsJRT57dJWK5D6D4wtpKXXJ/3es5d0SZYRmEyF2PjZ8=; b=pZ0NHbEB8oiUYBHyDXEpT9QD1IL+82G1DTtdxwu92Glb7tWWAscov9oPbQYaoPiqWQ MCQuVl8eNA5+HESnQrCvPiXnvJnA9wiAO2XYz3aOhax3Q8ngXGZeR5Rj/kzfNoNfVzUn LRMPHxy4nW4wE5vW1G15Krz6tXyeTePMPwkXZwcxugFX79iPZVdHzqZdxU/2bhXHiSJi 2+0uJXCbAIrAmDf6I/vq/1b44NrVfSx+N1QWBzZf75l5mn13G/1XOfTk8iloB2J2pTue A7sZ2OxDrqZRwQSdhxpajeNrBz5vmongZnHI4E3wtD+jarz6OJZV6wxLZGnGvBIxriwZ 2suQ== 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 q11-v6si10401482pgp.95.2018.06.17.10.05.13; Sun, 17 Jun 2018 10:05:28 -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 S935157AbeFQRES (ORCPT + 99 others); Sun, 17 Jun 2018 13:04:18 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:49120 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935211AbeFQRDU (ORCPT ); Sun, 17 Jun 2018 13:03:20 -0400 Received: from belgarion.home ([90.55.203.186]) by mwinf5d83 with ME id zt2e1x00N41oiFu03t3HUg; Sun, 17 Jun 2018 19:03:18 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sun, 17 Jun 2018 19:03:18 +0200 X-ME-IP: 90.55.203.186 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Bartlomiej Zolnierkiewicz , Tejun Heo , Vinod Koul , Mauro Carvalho Chehab , Ulf Hansson , Miquel Raynal , Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Nicolas Pitre , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown 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 v3 12/14] dmaengine: pxa: make the filter function internal Date: Sun, 17 Jun 2018 19:02:15 +0200 Message-Id: <20180617170217.24177-13-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180617170217.24177-1-robert.jarzmik@free.fr> References: <20180617170217.24177-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 Acked-by: Vinod Koul --- Since v1: added Vinod's ack --- 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 b31c28b67ad3..0db29bd1b096 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 @@ -1501,7 +1501,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; @@ -1514,7 +1514,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