Skip to contentSkip to conversation

dmaengine: mcf-edma: avoid warning for wrong pointer cast

PATCH New Vinod Koul 1 participant 1 message Sep 18, 2018 dmaengine

lore
Share & tools
lore

Vinod Koul

author maintainer Applied
#0 lore raw

PATCH v3 1/1 dmaengine: mcf-edma: avoid warning for wrong pointer cast

Quoted 7 lines · Angelo Dureghello

This patch fixes the following compilation warning reported during x86_64 allmodconfig build:

drivers/dma/mcf-edma.c: In function 'mcf_edma_filter_fn':
drivers/dma/mcf-edma.c:296:33: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]

        return (mcf_chan->slave_id == (u32)param);

Applied, thanks