]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: mcf-edma: avoid warning for wrong pointer cast
authorAngelo Dureghello <angelo@sysam.it>
Fri, 14 Sep 2018 19:13:48 +0000 (21:13 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 18 Sep 2018 19:15:45 +0000 (12:15 -0700)
commit8aa809d6e2e02045a6d8193ac4f80b3b804fc76a
tree7353ffae428eb1a6733191f2bd9b02f1af1408ce
parent2483564badfc59d27b70f9cab5e1713062ac8c44
dmaengine: mcf-edma: avoid warning for wrong pointer cast

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);

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mcf-edma.c