This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] timblogiw: fix compile warning
Author:  Hans Verkuil <hverk...@xs4all.nl>
Date:    Wed Dec 29 14:38:44 2010 -0300

Fix 64-bit compile warning:

drivers/media/video/timblogiw.c: In function ‘timblogiw_dma_filter_fn’:
drivers/media/video/timblogiw.c:151: warning: cast from pointer to integer of 
different size
drivers/media/video/timblogiw.c: In function ‘timblogiw_open’:
drivers/media/video/timblogiw.c:670: warning: cast to pointer from integer of 
different size

Signed-off-by: Hans Verkuil <hverk...@xs4all.nl>
Cc: Richard Rojförs <richard.rojf...@pelagicore.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>

 drivers/media/video/timblogiw.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=75cd068e9322727a25ea9e3b91104290a920e39b

diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c
index c2fcab4..fc611eb 100644
--- a/drivers/media/video/timblogiw.c
+++ b/drivers/media/video/timblogiw.c
@@ -148,7 +148,7 @@ static void timblogiw_dma_cb(void *data)
 
 static bool timblogiw_dma_filter_fn(struct dma_chan *chan, void *filter_param)
 {
-       return chan->chan_id == (int)filter_param;
+       return chan->chan_id == (uintptr_t)filter_param;
 }
 
 /* IOCTL functions */
@@ -668,7 +668,7 @@ static int timblogiw_open(struct file *file)
 
        /* find the DMA channel */
        fh->chan = dma_request_channel(mask, timblogiw_dma_filter_fn,
-                       (void *)lw->pdata.dma_channel);
+                       (void *)(uintptr_t)lw->pdata.dma_channel);
        if (!fh->chan) {
                dev_err(&vdev->dev, "Failed to get DMA channel\n");
                kfree(fh);

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to