linux_dsm_epyc7002/drivers/media/platform/davinci
Prabhakar Lad e9b5872ce5 [media] media: davinci: vpif: fix array out of bound warnings
This patch fixes following array out of bound warnings,

drivers/media/platform/davinci/vpif_display.c: In function 'vpif_remove':
drivers/media/platform/davinci/vpif_display.c:1389:36: warning: iteration
1u invokes undefined behavior [-Waggressive-loop-optimizations]
   vb2_dma_contig_cleanup_ctx(common->alloc_ctx);
                                    ^
drivers/media/platform/davinci/vpif_display.c:1385:2: note: containing loop
  for (i = 0; i < VPIF_DISPLAY_MAX_DEVICES; i++) {
  ^
drivers/media/platform/davinci/vpif_capture.c: In function 'vpif_remove':
drivers/media/platform/davinci/vpif_capture.c:1581:36: warning: iteration
1u invokes undefined behavior [-Waggressive-loop-optimizations]
   vb2_dma_contig_cleanup_ctx(common->alloc_ctx);
                                    ^
drivers/media/platform/davinci/vpif_capture.c:1577:2: note: containing loop
  for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) {
  ^
drivers/media/platform/davinci/vpif_capture.c:1580:23: warning: array subscript
is above array bounds [-Warray-bounds]
   common = &ch->common[i];

Reported-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-22 00:46:17 -03:00
..
ccdc_hw_device.h [media] rename drivers/media/video as .../platform 2012-08-15 16:43:09 -03:00
dm355_ccdc_regs.h [media] davinci: more gama -> gamma typo fixes 2013-03-19 16:16:23 -03:00
dm355_ccdc.c [media] media: davinci: vpss: enable vpss clocks 2013-04-14 20:08:09 -03:00
dm644x_ccdc_regs.h [media] davinci/dm644x_ccdc: fix compiler warning 2013-03-19 16:16:04 -03:00
dm644x_ccdc.c [media] dm644x_ccdc: remove check for CONFIG_DM644X_VIDEO_PORT_ENABLE 2014-07-04 16:09:22 -03:00
isif_regs.h [media] davinci: more gama -> gamma typo fixes 2013-03-19 16:16:23 -03:00
isif.c [media] media: davinci: vpss: enable vpss clocks 2013-04-14 20:08:09 -03:00
Kconfig [media] media: davinci: kconfig: fix incorrect selects 2013-04-14 20:06:36 -03:00
Makefile [media] media: davinci: kconfig: fix incorrect selects 2013-04-14 20:06:36 -03:00
vpbe_display.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
vpbe_osd_regs.h [media] rename drivers/media/video as .../platform 2012-08-15 16:43:09 -03:00
vpbe_osd.c [media] media: davinci: vpbe_osd: convert to devm_* api 2013-07-26 13:18:45 -03:00
vpbe_venc_regs.h [media] rename drivers/media/video as .../platform 2012-08-15 16:43:09 -03:00
vpbe_venc.c [media] media: davinci: vpbe_venc: convert to devm_* api 2013-07-26 13:18:22 -03:00
vpbe.c [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
vpfe_capture.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
vpif_capture.c [media] media: davinci: vpif: fix array out of bound warnings 2014-07-22 00:46:17 -03:00
vpif_capture.h [media] media: davinci: vpif_capture: drop unneeded module params 2014-06-17 12:04:44 -03:00
vpif_display.c [media] media: davinci: vpif: fix array out of bound warnings 2014-07-22 00:46:17 -03:00
vpif_display.h [media] media: davinci; vpif_display: fix checkpatch error 2014-05-23 19:16:56 -03:00
vpif.c [media] media: davinci: vpif: remove unnecessary braces around defines 2013-06-21 11:25:33 -03:00
vpif.h [media] davinci: vpif: Fix module build for capture and display 2013-03-23 10:38:10 -03:00
vpss.c [media] media: davinci: vpss: convert to devm* api 2013-07-26 13:19:22 -03:00