]> git.karo-electronics.de Git - linux-beck.git/commit
[media] ti-vpe: Fix typecast
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 24 Sep 2014 22:22:20 +0000 (19:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 26 Sep 2014 09:50:58 +0000 (06:50 -0300)
commit5b31d9e036c1e18141b0458e89ce78e966a0d590
tree83fbc36f731a1cfb5d81c2c36788780da41c61e8
parentc0a566f3d51beb226f2cd79f7e9439ff3bed44b3
[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>
drivers/media/platform/ti-vpe/vpdma.c