* [-next] dmaengine: mcf-edma: fix x86_64 allmodconfig compilation warning
@ 2018-09-14 6:29 Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2018-09-14 6:29 UTC (permalink / raw)
To: Angelo Dureghello; +Cc: dmaengine, sfr
On 13-09-18, 20:47, Angelo Dureghello wrote:
> This patch fixes the compilation warning reported
> during x86_64 allmodconfig build.
>
Please do add credit to Stephan for reporting by using Reported-By tag
> Signed-off-by: Angelo Dureghello <angelo@sysam.it>
> ---
> drivers/dma/mcf-edma.c | 3 ++-
> include/linux/platform_data/dma-mcf-edma.h | 2 +-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/dma/mcf-edma.c b/drivers/dma/mcf-edma.c
> index 4d30d5302649..e08e2409a102 100644
> --- a/drivers/dma/mcf-edma.c
> +++ b/drivers/dma/mcf-edma.c
> @@ -292,8 +292,9 @@ bool mcf_edma_filter_fn(struct dma_chan *chan, void *param)
> {
> if (chan->device->dev->driver == &mcf_edma_driver.driver) {
> struct fsl_edma_chan *mcf_chan = to_fsl_edma_chan(chan);
> + unsigned int req = *(unsigned int *)param;
>
> - return (mcf_chan->slave_id == (u32)param);
> + return (mcf_chan->slave_id == req);
> }
>
> return false;
> diff --git a/include/linux/platform_data/dma-mcf-edma.h b/include/linux/platform_data/dma-mcf-edma.h
> index d718ccfa3421..97cb79bda646 100644
> --- a/include/linux/platform_data/dma-mcf-edma.h
> +++ b/include/linux/platform_data/dma-mcf-edma.h
> @@ -21,7 +21,7 @@ struct dma_slave_map;
>
> bool mcf_edma_filter_fn(struct dma_chan *chan, void *param);
>
> -#define MCF_EDMA_FILTER_PARAM(ch) ((void *)ch)
> +#define MCF_EDMA_FILTER_PARAM(ch) ((int[]) { (ch) })
Why this change
^ permalink raw reply [flat|nested] 2+ messages in thread
* [-next] dmaengine: mcf-edma: fix x86_64 allmodconfig compilation warning
@ 2018-09-13 18:47 Angelo Dureghello
0 siblings, 0 replies; 2+ messages in thread
From: Angelo Dureghello @ 2018-09-13 18:47 UTC (permalink / raw)
To: vinod.koul; +Cc: dmaengine, sfr, Angelo Dureghello
This patch fixes the compilation warning reported
during x86_64 allmodconfig build.
Signed-off-by: Angelo Dureghello <angelo@sysam.it>
---
drivers/dma/mcf-edma.c | 3 ++-
include/linux/platform_data/dma-mcf-edma.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/mcf-edma.c b/drivers/dma/mcf-edma.c
index 4d30d5302649..e08e2409a102 100644
--- a/drivers/dma/mcf-edma.c
+++ b/drivers/dma/mcf-edma.c
@@ -292,8 +292,9 @@ bool mcf_edma_filter_fn(struct dma_chan *chan, void *param)
{
if (chan->device->dev->driver == &mcf_edma_driver.driver) {
struct fsl_edma_chan *mcf_chan = to_fsl_edma_chan(chan);
+ unsigned int req = *(unsigned int *)param;
- return (mcf_chan->slave_id == (u32)param);
+ return (mcf_chan->slave_id == req);
}
return false;
diff --git a/include/linux/platform_data/dma-mcf-edma.h b/include/linux/platform_data/dma-mcf-edma.h
index d718ccfa3421..97cb79bda646 100644
--- a/include/linux/platform_data/dma-mcf-edma.h
+++ b/include/linux/platform_data/dma-mcf-edma.h
@@ -21,7 +21,7 @@ struct dma_slave_map;
bool mcf_edma_filter_fn(struct dma_chan *chan, void *param);
-#define MCF_EDMA_FILTER_PARAM(ch) ((void *)ch)
+#define MCF_EDMA_FILTER_PARAM(ch) ((int[]) { (ch) })
/**
* struct mcf_edma_platform_data - platform specific data for eDMA engine
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-14 6:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-14 6:29 [-next] dmaengine: mcf-edma: fix x86_64 allmodconfig compilation warning Vinod Koul
-- strict thread matches above, loose matches on Subject: below --
2018-09-13 18:47 Angelo Dureghello
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.