WSL2-Linux-Kernel/drivers/gpu/drm/kmb
Anitha Chrisanthus b2c91bee79 drm/kmb: Fix for build errors with Warray-bounds
commit 43f2517955 upstream.

This fixes the following build error

drivers/gpu/drm/kmb/kmb_plane.c: In function 'kmb_plane_atomic_disable':
drivers/gpu/drm/kmb/kmb_plane.c:165:34: error: array subscript 3 is above array bounds of 'struct layer_status[2]' [-Werror=array-bounds]
  165 |                 kmb->plane_status[plane_id].ctrl =
  LCD_CTRL_GL2_ENABLE;
  |                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~
  In file included from drivers/gpu/drm/kmb/kmb_plane.c:17:
  drivers/gpu/drm/kmb/kmb_drv.h:61:41: note: while referencing 'plane_status'
  61 |         struct layer_status  plane_status[KMB_MAX_PLANES];
  |                                         ^~~~~~~~~~~~
  drivers/gpu/drm/kmb/kmb_plane.c:162:34: error: array subscript 2 is above array bounds of 'struct layer_status[2]' [-Werror=array-bounds]
  162 |  kmb->plane_status[plane_id].ctrl =  LCD_CTRL_GL1_ENABLE;
  |                 ~~~~~~~~~~~~~~~~~^~~~~~~~~~
  In file included from
  drivers/gpu/drm/kmb/kmb_plane.c:17:
  drivers/gpu/drm/kmb/kmb_drv.h:61:41: note: while referencing 'plane_status'
  61 |         struct layer_status  plane_status[KMB_MAX_PLANES];
  |
  ^~~~~~~~~~~~

Fixes: 7f7b96a8a0 ("drm/kmb: Add support for KeemBay Display")
Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127194227.2213608-1-anitha.chrisanthus@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-08 18:34:09 +01:00
..
Kconfig
Makefile
kmb_crtc.c drm/kmb: Enable ADV bridge after modeset 2021-10-21 11:08:09 +02:00
kmb_drv.c drm/kmb: Corrected typo in handle_lcd_irq 2021-10-21 11:08:09 +02:00
kmb_drv.h drm/kmb: Disable change of plane parameters 2021-10-21 11:08:08 +02:00
kmb_dsi.c drm/kmb: Enable ADV bridge after modeset 2021-10-21 11:08:09 +02:00
kmb_dsi.h drm/kmb: Enable ADV bridge after modeset 2021-10-21 11:08:09 +02:00
kmb_plane.c drm/kmb: Fix for build errors with Warray-bounds 2022-02-08 18:34:09 +01:00
kmb_plane.h drm/kmb: Disable change of plane parameters 2021-10-21 11:08:08 +02:00
kmb_regs.h drm/kmb: Enable alpha blended second plane 2021-10-06 11:05:44 +02:00