Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma: pl330: silence a compile warning

On 64 bit systems GCC warns that:

drivers/dma/pl330.c: In function ‘pl330_filter’:
drivers/dma/pl330.c:2317:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

It's harmless and I have casted it away.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Dan Carpenter and committed by
Vinod Koul
2f986ec6 02808b42

+1 -1
+1 -1
drivers/dma/pl330.c
··· 2314 2314 return false; 2315 2315 2316 2316 peri_id = chan->private; 2317 - return *peri_id == (unsigned)param; 2317 + return *peri_id == (unsigned long)param; 2318 2318 } 2319 2319 EXPORT_SYMBOL(pl330_filter); 2320 2320