summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-09-14 12:51:32 +0200
committerVinod Koul <vinod.koul@intel.com>2016-09-26 19:01:59 +0200
commit9d0c6f2506c5a1ce0fb66e202c639688ec8c757f (patch)
tree69abb555a1ead98d661dda09cd7390ecda6564ea
parentdmaengine: s3c24xx: use correct print specifiers for size_t (diff)
downloadlinux-9d0c6f2506c5a1ce0fb66e202c639688ec8c757f.tar.xz
linux-9d0c6f2506c5a1ce0fb66e202c639688ec8c757f.zip
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>
-rw-r--r--drivers/dma/s3c24xx-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c
index b4a7041c4f81..ae1937a32e71 100644
--- a/drivers/dma/s3c24xx-dma.c
+++ b/drivers/dma/s3c24xx-dma.c
@@ -1418,7 +1418,7 @@ bool s3c24xx_dma_filter(struct dma_chan *chan, void *param)
s3cchan = to_s3c24xx_dma_chan(chan);
- return s3cchan->id == (int)param;
+ return s3cchan->id == (uintptr_t)param;
}
EXPORT_SYMBOL(s3c24xx_dma_filter);