dmaengine: mcf-edma: fix x86_64 allmodconfig compilation warning
Vinod Koul
maintainerPATCH v2 1/1 dmaengine: mcf-edma: fix x86_64 allmodconfig compilation warning
Quoted 2 lines · Angelo Dureghello
This patch fixes the compilation warning reported
duringx86_64allmodconfig build.
How does it do so, I have no clue what to expect. Please describe the change done here in the log...
Patch title also doesn't tell me anything about the fix.
Quoted 31 lines
Reported-By Stephen Rothwell <[email protected]>Signed-off-by Angelo Dureghello <[email protected]>---
Changes for v2:
- added Reported-By--- drivers/dma/mcf-edma.c | 3 ++- include/linux/platform_data/dma-mcf-edma.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)drivers/dma/mcf-edma.c +2
-1@@ -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;include/linux/platform_data/dma-mcf-edma.h +0
-0
include/linux/platform_data/dma-mcf-edma.h struct dma_slave_map; · line 24
Quoted 5 lines
include/linux/platform_data/dma-mcf-edma.h +1
-1@@ -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) })
I dont think you answered me about this, why is this change required and in the context of current patch, what does it fix?