Skip to content

Commit

Permalink
dma: pl330: silence a compile warning
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Dan Carpenter authored and Vinod Koul committed Nov 13, 2013
1 parent 02808b4 commit 2f986ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2f986ec

Please sign in to comment.