From: Hans Verkuil Date: Wed, 29 Dec 2010 17:38:44 +0000 (-0300) Subject: [media] timblogiw: fix compile warning X-Git-Tag: v2.6.38-rc1~470^2~28 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=61ea3aa5bf309333c6655ccef825b4a765bff219;p=~shefty%2Frdma-dev.git [media] timblogiw: fix compile warning 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 Cc: Richard Rojförs Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c index c2fcab465df..fc611ebeb82 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);