]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mtk-vcodec: fix more type mismatches
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Jul 2016 08:47:40 +0000 (05:47 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 15 Jul 2016 15:37:17 +0000 (12:37 -0300)
commit1a514bea126f9344b6b68eb0c6b9a7b162820c13
treee5d1a01db7941978201e3a47c3492bcbef4182da
parent3c27f0eca1aee2cd99a23bc62a56b1240afcd206
[media] mtk-vcodec: fix more type mismatches

The newly added mtk-vcodec driver produces a number of warnings in an
ARM allmodconfig build, mainly since it assumes that dma_addr_t is
32-bit wide:

mtk-vcodec/venc/venc_vp8_if.c: In function 'vp8_enc_alloc_work_buf':
mtk-vcodec/venc/venc_vp8_if.c:212:191: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
mtk-vcodec/venc/venc_h264_if.c: In function 'h264_enc_alloc_work_buf':
mtk-vcodec/venc/venc_h264_if.c:297:190: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

This rearranges the format strings and type casts to what they should
have been in order to avoid the warnings. 8b3b81afc14f ("[media]
mtk-vcodec: fix two compiler warnings") fixed some of the problems that
were introduced at the same time, but missed two others.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c