linux-sg2042/drivers/media/platform
Minghsiu Tsai 9eeb0ed0f3 [media] mtk-vcodec: fix build warnings without DEBUG
After removing DEBUG from mtk_vcodec_util.h, some build warnings are
generated as the following:
.../drivers/media/platform/mtk-vcodec/vdec_vpu_if.c: In function 'vcodec_vpu_send_msg':
.../drivers/media/platform/mtk-vcodec/vdec_vpu_if.c:73:11: warning: unused variable 'msg_id' [-Wunused-variable]
  uint32_t msg_id = *(uint32_t *)msg;
           ^
.../drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c: In function 'vb2ops_vdec_buf_queue':
.../drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c:1129:7: warning: unused variable 'log_level' [-Wunused-variable]
   int log_level = ret ? 0 : 1;
       ^
.../drivers/media/platform/mtk-vcodec/venc_vpu_if.c: In function 'vpu_enc_send_msg':
.../drivers/media/platform/mtk-vcodec/venc_vpu_if.c:82:12: warning: unused variable 'msg_id' [-Wunused-variable]
   uint32_t msg_id = *(uint32_t *)msg;
            ^

It is because mtk_vcodec_debug() and mtk_vcodec_err() are defined as empty
macros. Without DEBUG definition, the variable for debugging is not used
anymore. Fixing build warnings by moving the assignment of the
variable to the argument of mtk_vcodec_debug() and mtk_vcodec_err().
Within the patch, build pass with/without DEBUG definition, and functions
still work fine.

Signed-off-by: Minghsiu Tsai <minghsiu.tsai@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-02-08 12:08:20 -02:00
..
am437x [media] am437x-vpfe: always assign bpp variable 2017-01-30 15:43:40 -02:00
atmel [media] atmel-isc: fix error return code in atmel_isc_probe() 2016-11-22 05:40:52 -02:00
blackfin [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
coda [media] coda/imx-vdoa: constify structs 2017-02-08 10:29:17 -02:00
davinci [media] Staging: media: platform: davinci: - Fix for memory leak 2017-02-03 07:14:28 -02:00
exynos-gsc [media] exynos-gsc: Avoid spamming the log on VIDIOC_TRY_FMT 2017-02-03 14:26:35 -02:00
exynos4-is [media] media: exynos4-is: add flags to dummy Exynos IS i2c adapter 2017-02-08 10:33:06 -02:00
marvell-ccic [media] marvell-ccic: don't break long lines 2016-10-21 09:30:46 -02:00
mtk-mdp [media] mtk-mdp: allocate video_device dynamically 2016-11-22 05:42:29 -02:00
mtk-vcodec [media] mtk-vcodec: fix build warnings without DEBUG 2017-02-08 12:08:20 -02:00
mtk-vpu [media] VPU: mediatek: Fix return value in case of error 2016-10-24 18:11:57 -02:00
omap Linux 4.9-rc5 2016-11-16 16:42:27 -02:00
omap3isp [media] v4l: omap3isp: Clean up file handle in open() and release() 2017-01-31 10:57:58 -02:00
rcar-vin [media] rcar-vin: add R-Car gen2 fallback compatibility string 2016-09-22 12:52:55 -03:00
s3c-camif [media] media: platform: s3c-camif: constify v4l2_subdev_ops structures 2017-02-03 10:58:00 -02:00
s5p-g2d [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
s5p-jpeg [media] squash lines for simple wrapper functions 2016-11-16 13:28:40 -02:00
s5p-mfc [media] s5p-mfc: Add support for MFC v8 available in Exynos 5433 SoCs 2016-11-30 09:22:07 -02:00
soc_camera [media] media: platform: soc_camera_platform : constify v4l2_subdev_* structures 2017-01-30 14:47:21 -02:00
sti [media] st-delta: debug: trace stream/frame information & summary 2017-02-08 10:07:29 -02:00
ti-vpe [media] media: ti-vpe: vpdma: fix a timeout loop 2017-02-03 07:18:34 -02:00
vivid [media] vivid: Enable 4k resolution for webcam capture device 2017-01-30 15:42:04 -02:00
vsp1 [media] v4l: vsp1: Add VIDIOC_EXPBUF support 2017-02-03 09:24:13 -02:00
xilinx [media] media: platform: xilinx: xilinx-tpg: constify v4l2_subdev_* structures 2017-02-03 09:21:50 -02:00
Kconfig [media] st-delta: add mjpeg support 2017-02-08 10:06:16 -02:00
Makefile [media] st-delta: STiH4xx multi-format video decoder v4l2 driver 2017-02-08 10:00:27 -02:00
arv.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
fsl-viu.c [media] fsl-viu: drop format names 2015-08-11 06:59:09 -03:00
m2m-deinterlace.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
mx2_emmaprp.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
pxa_camera.c [media] media: platform: pxa_camera: add missing sensor power on 2016-10-24 18:08:12 -02:00
rcar-fcp.c [media] v4l: rcar-fcp: Fix module autoload for OF registration 2016-11-16 13:17:07 -02:00
rcar_fdp1.c [media] v4l: rcar_fdp1: use %4.4s to format a 4-byte string 2017-02-03 11:50:40 -02:00
rcar_jpu.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
sh_veu.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
sh_vou.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
via-camera.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
via-camera.h
vim2m.c [media] vim2m: Clean up file handle in open() error path 2017-01-31 07:44:26 -02:00