* [patch 2/2] dma: pl330: silence a compile warning
@ 2013-11-08 9:51 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-11-08 9:51 UTC (permalink / raw)
To: kernel-janitors
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>
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 4af4b0c..f612068 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2314,7 +2314,7 @@ bool pl330_filter(struct dma_chan *chan, void *param)
return false;
peri_id = chan->private;
- return *peri_id = (unsigned)param;
+ return *peri_id = (unsigned long)param;
}
EXPORT_SYMBOL(pl330_filter);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-08 9:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 9:51 [patch 2/2] dma: pl330: silence a compile warning Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox