Hi Kees, On Mon, 30 Aug 2021 16:50:55 -0700 Kees Cook <keescook@xxxxxxxxxxxx> wrote: > > On August 30, 2021 1:44:29 AM PDT, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote: > > > >After merging the kspp tree, today's linux-next build (powerpc > >allyesconfig) produced this warning: > > > >drivers/gpu/drm/kmb/kmb_plane.c:135:20: warning: array subscript 3 is above array bounds of 'struct layer_status[1]' [-Warray-bounds] > > 135 | 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:48:23: note: while referencing 'plane_status' > > 48 | struct layer_status plane_status[KMB_MAX_PLANES]; > > | ^~~~~~~~~~~~ > > Ah yes, thanks for the report. I encountered this too, and have been told the warning will go away soon: > https://lore.kernel.org/lkml/BY5PR11MB4182ABD607EB99C1F68777928CC69@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ ok, thanks -- Cheers, Stephen Rothwell
Attachment:
pgpehEWXdzsVo.pgp
Description: OpenPGP digital signature