diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-24 19:22:20 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-26 06:50:58 -0300 |
commit | 5b31d9e036c1e18141b0458e89ce78e966a0d590 (patch) | |
tree | 83fbc36f731a1cfb5d81c2c36788780da41c61e8 /drivers/media | |
parent | c0a566f3d51beb226f2cd79f7e9439ff3bed44b3 (diff) | |
download | op-kernel-dev-5b31d9e036c1e18141b0458e89ce78e966a0d590.zip op-kernel-dev-5b31d9e036c1e18141b0458e89ce78e966a0d590.tar.gz |
[media] ti-vpe: Fix typecast
Addresses have the same size of unsigned long, and not u32.
That removes a warning on 64 bits compilation:
drivers/media//platform/ti-vpe/vpdma.c:332:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
WARN_ON(((u32) buf->addr & VPDMA_DESC_ALIGN) != 0);
^
include/asm-generic/bug.h:86:25: note: in definition of macro ‘WARN_ON’
int __ret_warn_on = !!(condition); \
^
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/ti-vpe/vpdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/ti-vpe/vpdma.c b/drivers/media/platform/ti-vpe/vpdma.c index 684ba19..3e2e3a3 100644 --- a/drivers/media/platform/ti-vpe/vpdma.c +++ b/drivers/media/platform/ti-vpe/vpdma.c @@ -329,7 +329,7 @@ int vpdma_alloc_desc_buf(struct vpdma_buf *buf, size_t size) if (!buf->addr) return -ENOMEM; - WARN_ON(((u32) buf->addr & VPDMA_DESC_ALIGN) != 0); + WARN_ON(((unsigned long)buf->addr & VPDMA_DESC_ALIGN) != 0); return 0; } |