mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
[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>
This commit is contained in:
parent
c0a566f3d5
commit
5b31d9e036
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user