mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
dmaengine: s3c24xx: fix pointer cast warnings
On some systems, pointer can be large than unsigned int, triggering warning pointer-to-int-cast on conversion. drivers/dma/s3c24xx-dma.c: In function 's3c24xx_dma_filter': drivers/dma/s3c24xx-dma.c:1421:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Use a long value for type conversion. Suggested-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
abdad50d1d
commit
9d0c6f2506
@ -1418,7 +1418,7 @@ bool s3c24xx_dma_filter(struct dma_chan *chan, void *param)
|
|||||||
|
|
||||||
s3cchan = to_s3c24xx_dma_chan(chan);
|
s3cchan = to_s3c24xx_dma_chan(chan);
|
||||||
|
|
||||||
return s3cchan->id == (int)param;
|
return s3cchan->id == (uintptr_t)param;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(s3c24xx_dma_filter);
|
EXPORT_SYMBOL(s3c24xx_dma_filter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user